Struct polars_core::chunked_array::builder::list::ListPrimitiveChunkedBuilder
source · pub struct ListPrimitiveChunkedBuilder<T>where
T: PolarsNumericType,{
pub builder: MutableListArray<i64, MutablePrimitiveArray<T::Native>>,
/* private fields */
}
Fields§
§builder: MutableListArray<i64, MutablePrimitiveArray<T::Native>>
Implementations§
source§impl<T> ListPrimitiveChunkedBuilder<T>where
T: PolarsNumericType,
impl<T> ListPrimitiveChunkedBuilder<T>where
T: PolarsNumericType,
pub fn new( name: &str, capacity: usize, values_capacity: usize, logical_type: DataType ) -> Self
pub fn new_with_values_type( name: &str, capacity: usize, values_capacity: usize, values_type: DataType, logical_type: DataType ) -> Self
pub fn append_slice(&mut self, items: &[T::Native])
pub fn append_opt_slice(&mut self, opt_v: Option<&[T::Native]>)
sourcepub fn append_iter_values<I: Iterator<Item = T::Native> + TrustedLen>(
&mut self,
iter: I
)
pub fn append_iter_values<I: Iterator<Item = T::Native> + TrustedLen>( &mut self, iter: I )
Appends from an iterator over values
sourcepub fn append_iter<I: Iterator<Item = Option<T::Native>> + TrustedLen>(
&mut self,
iter: I
)
pub fn append_iter<I: Iterator<Item = Option<T::Native>> + TrustedLen>( &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) -> PolarsResult<()>
fn field(&self) -> &Field
fn inner_array(&mut self) -> ArrayRef
fn fast_explode(&self) -> bool
fn append_opt_series(&mut self, opt_s: Option<&Series>) -> PolarsResult<()>
fn finish(&mut self) -> ListChunked
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
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