pub struct ListPrimitiveChunkedBuilder<T>where
T: PolarsNumericType,{
pub builder: MutableListArray<i64, MutablePrimitiveArray<<T as PolarsNumericType>::Native>>,
/* private fields */
}
Fields§
§builder: MutableListArray<i64, MutablePrimitiveArray<<T as PolarsNumericType>::Native>>
Implementations§
Source§impl<T> ListPrimitiveChunkedBuilder<T>where
T: PolarsNumericType,
impl<T> ListPrimitiveChunkedBuilder<T>where
T: PolarsNumericType,
pub fn new( name: PlSmallStr, capacity: usize, values_capacity: usize, inner_type: DataType, ) -> ListPrimitiveChunkedBuilder<T>
pub fn new_with_values_type( name: PlSmallStr, capacity: usize, values_capacity: usize, values_type: DataType, logical_type: DataType, ) -> ListPrimitiveChunkedBuilder<T>
pub fn append_slice(&mut self, items: &[<T as PolarsNumericType>::Native])
pub fn append_opt_slice( &mut self, opt_v: Option<&[<T as PolarsNumericType>::Native]>, )
Sourcepub fn append_values_iter_trusted_len<I>(&mut self, iter: I)
pub fn append_values_iter_trusted_len<I>(&mut self, iter: I)
Appends from an iterator over values
pub fn append_values_iter<I>(&mut self, iter: I)
Sourcepub fn append_iter<I>(&mut self, iter: I)
pub fn append_iter<I>(&mut self, iter: I)
Appends from an iterator over values
Trait Implementations§
Source§impl<T> ListBuilderTrait for ListPrimitiveChunkedBuilder<T>where
T: PolarsNumericType,
impl<T> ListBuilderTrait for ListPrimitiveChunkedBuilder<T>where
T: PolarsNumericType,
fn append_null(&mut self)
fn append_series(&mut self, s: &Series) -> Result<(), PolarsError>
fn field(&self) -> &Field
fn inner_array(&mut self) -> Box<dyn Array>
fn fast_explode(&self) -> bool
fn append_opt_series( &mut self, opt_s: Option<&Series>, ) -> Result<(), PolarsError>
fn finish(&mut self) -> ChunkedArray<ListType>
Auto Trait Implementations§
impl<T> Freeze for ListPrimitiveChunkedBuilder<T>
impl<T> !RefUnwindSafe for ListPrimitiveChunkedBuilder<T>
impl<T> Send for ListPrimitiveChunkedBuilder<T>
impl<T> Sync for ListPrimitiveChunkedBuilder<T>
impl<T> Unpin for ListPrimitiveChunkedBuilder<T>
impl<T> !UnwindSafe for ListPrimitiveChunkedBuilder<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more