Struct polars_core::chunked_array::object::builder::ObjectChunkedBuilder
source · pub struct ObjectChunkedBuilder<T> { /* private fields */ }
Available on crate feature
object
only.Implementations§
source§impl<T> ObjectChunkedBuilder<T>where
T: PolarsObject,
impl<T> ObjectChunkedBuilder<T>where
T: PolarsObject,
pub fn new(name: &str, capacity: usize) -> Self
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) -> PolarsResult<()>
pub fn append_option(&mut self, opt: Option<T>)
pub fn finish(self) -> ObjectChunked<T>
Trait Implementations§
source§impl<T: PolarsObject> AnonymousObjectBuilder for ObjectChunkedBuilder<T>
impl<T: PolarsObject> AnonymousObjectBuilder for ObjectChunkedBuilder<T>
source§impl<T> Default for ObjectChunkedBuilder<T>where
T: PolarsObject,
impl<T> Default for ObjectChunkedBuilder<T>where
T: PolarsObject,
Auto Trait Implementations§
impl<T> Freeze for ObjectChunkedBuilder<T>
impl<T> !RefUnwindSafe for ObjectChunkedBuilder<T>
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>
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