ColumnBuilder

Struct ColumnBuilder 

Source
pub struct ColumnBuilder<R: Record + ColAt<I>, const I: usize>
where <R as ColAt<I>>::Native: ArrowBinding,
{ /* private fields */ }
Expand description

A typed column builder for column I of record R.

Implementations§

Source§

impl<R: Record + ColAt<I>, const I: usize> ColumnBuilder<R, I>
where <R as ColAt<I>>::Native: ArrowBinding,

Source

pub fn with_capacity(capacity: usize) -> Self

Create a builder with capacity.

Source

pub fn append_value(&mut self, v: &<R as ColAt<I>>::Native)

Append a value.

Source

pub fn append_option(&mut self, v: Option<&<R as ColAt<I>>::Native>)

Append an optional value; None appends a null.

Source

pub fn finish(self) -> <<R as ColAt<I>>::Native as ArrowBinding>::Array

Finish and produce the typed Arrow array for this column.

Auto Trait Implementations§

§

impl<R, const I: usize> Freeze for ColumnBuilder<R, I>
where <<R as ColAt<I>>::Native as ArrowBinding>::Builder: Freeze,

§

impl<R, const I: usize> RefUnwindSafe for ColumnBuilder<R, I>

§

impl<R, const I: usize> Send for ColumnBuilder<R, I>
where <<R as ColAt<I>>::Native as ArrowBinding>::Builder: Send, R: Send,

§

impl<R, const I: usize> Sync for ColumnBuilder<R, I>
where <<R as ColAt<I>>::Native as ArrowBinding>::Builder: Sync, R: Sync,

§

impl<R, const I: usize> Unpin for ColumnBuilder<R, I>
where <<R as ColAt<I>>::Native as ArrowBinding>::Builder: Unpin, R: Unpin,

§

impl<R, const I: usize> UnwindSafe for ColumnBuilder<R, I>
where <<R as ColAt<I>>::Native as ArrowBinding>::Builder: UnwindSafe, R: UnwindSafe,

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
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.

Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,