Skip to main content

VariantToPrimitiveArrowRowBuilder

Struct VariantToPrimitiveArrowRowBuilder 

Source
pub(crate) struct VariantToPrimitiveArrowRowBuilder<'a, T: PrimitiveFromVariant> {
    builder: PrimitiveBuilder<T>,
    cast_mode: VariantCastMode,
    cast_options: &'a CastOptions<'a>,
}

Fields§

§builder: PrimitiveBuilder<T>§cast_mode: VariantCastMode§cast_options: &'a CastOptions<'a>

Implementations§

Source§

impl<'a, T: PrimitiveFromVariant> VariantToPrimitiveArrowRowBuilder<'a, T>

Source

fn new( cast_options: &'a CastOptions<'a>, capacity: usize, cast_mode: VariantCastMode, ) -> Self

Source

fn append_null(&mut self) -> Result<()>

Source

fn append_value(&mut self, value: &Variant<'_, '_>) -> Result<bool>

Source

fn finish(self) -> Result<ArrayRef>

Auto Trait Implementations§

§

impl<'a, T> !Freeze for VariantToPrimitiveArrowRowBuilder<'a, T>

§

impl<'a, T> !RefUnwindSafe for VariantToPrimitiveArrowRowBuilder<'a, T>

§

impl<'a, T> !UnwindSafe for VariantToPrimitiveArrowRowBuilder<'a, T>

§

impl<'a, T> Forget for VariantToPrimitiveArrowRowBuilder<'a, T>

§

impl<'a, T> Move for VariantToPrimitiveArrowRowBuilder<'a, T>

§

impl<'a, T> Send for VariantToPrimitiveArrowRowBuilder<'a, T>
where RawVecInner: Send, <T as ArrowPrimitiveType>::Native: Send, MutableBuffer: Send, Arc<str>: Send, Arc<Field>: Send, Arc<[Arc<Field>]>: Send, Arc<[(i8, Arc<Field>)]>: Send, BoxRaw<DataType>: Send, &'a CastOptions<'a>: Send,

§

impl<'a, T> Sync for VariantToPrimitiveArrowRowBuilder<'a, T>
where RawVecInner: Sync, <T as ArrowPrimitiveType>::Native: Sync, MutableBuffer: Sync, Arc<str>: Sync, Arc<Field>: Sync, Arc<[Arc<Field>]>: Sync, Arc<[(i8, Arc<Field>)]>: Sync, BoxRaw<DataType>: Sync,

§

impl<'a, T> Unpin for VariantToPrimitiveArrowRowBuilder<'a, T>
where *const u8 is !null: Unpin, <T as ArrowPrimitiveType>::Native: Unpin, Align4<u32>: Unpin, Align1<u8>: Unpin, Box<dyn MemoryReservation>: Unpin, Arc<str>: Unpin, Arc<Field>: Unpin, Arc<[Arc<Field>]>: Unpin, Arc<[(i8, Arc<Field>)]>: Unpin, Box<DataType>: Unpin, &'a CastOptions<'a>: Unpin,

§

impl<'a, T> UnsafeUnpin for VariantToPrimitiveArrowRowBuilder<'a, T>
where *const u8 is !null: UnsafeUnpin, PhantomData<<T as ArrowPrimitiveType>::Native>: UnsafeUnpin, Align4<u32>: UnsafeUnpin, Align1<u8>: UnsafeUnpin, *const dyn MemoryReservation is !null: UnsafeUnpin, PhantomData<dyn MemoryReservation>: UnsafeUnpin, *const ArcInner<str> is !null: UnsafeUnpin, PhantomData<ArcInner<str>>: UnsafeUnpin, *const ArcInner<Field> is !null: UnsafeUnpin, PhantomData<ArcInner<Field>>: UnsafeUnpin, *const ArcInner<[Arc<Field>]> is !null: UnsafeUnpin, PhantomData<ArcInner<[Arc<Field>]>>: UnsafeUnpin, *const ArcInner<[(i8, Arc<Field>)]> is !null: UnsafeUnpin, PhantomData<ArcInner<[(i8, Arc<Field>)]>>: UnsafeUnpin, *const DataType is !null: UnsafeUnpin, PhantomData<DataType>: UnsafeUnpin, &'a CastOptions<'a>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Ungil for T
where T: Send,