Struct polars::chunked_array::object::builder::ObjectChunkedBuilder
source · [−]pub struct ObjectChunkedBuilder<T> { /* private fields */ }
This is supported on crate feature
object
only.Implementations
sourceimpl<T> ObjectChunkedBuilder<T> where
T: PolarsObject,
impl<T> ObjectChunkedBuilder<T> where
T: PolarsObject,
pub fn new(name: &str, capacity: usize) -> ObjectChunkedBuilder<T>
sourcepub fn append_value(&mut self, v: T)
pub fn append_value(&mut self, v: T)
Appends a value of type T
into the builder
sourcepub fn append_null(&mut self)
pub fn append_null(&mut self)
Appends a null slot into the builder
pub fn append_value_from_any(
&mut self,
v: &(dyn Any + 'static)
) -> Result<(), PolarsError>
pub fn append_option(&mut self, opt: Option<T>)
pub fn finish(self) -> ChunkedArray<ObjectType<T>>
Trait Implementations
sourceimpl<T> Default for ObjectChunkedBuilder<T> where
T: PolarsObject,
impl<T> Default for ObjectChunkedBuilder<T> where
T: PolarsObject,
sourcefn default() -> ObjectChunkedBuilder<T>
fn default() -> ObjectChunkedBuilder<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for ObjectChunkedBuilder<T> where
T: RefUnwindSafe,
impl<T> Send for ObjectChunkedBuilder<T> where
T: Send,
impl<T> Sync for ObjectChunkedBuilder<T> where
T: Sync,
impl<T> Unpin for ObjectChunkedBuilder<T> where
T: Unpin,
impl<T> UnwindSafe for ObjectChunkedBuilder<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more