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