Struct polars_core::chunked_array::builder::StringChunkedBuilder
source · pub struct StringChunkedBuilder {
pub capacity: usize,
/* private fields */
}Fields§
§capacity: usizeImplementations§
source§impl StringChunkedBuilder
impl StringChunkedBuilder
sourcepub fn new(name: &str, capacity: usize, bytes_capacity: usize) -> Self
pub fn new(name: &str, capacity: usize, bytes_capacity: usize) -> Self
Create a new StringChunkedBuilder
Arguments
capacity- Number of string elements in the final array.bytes_capacity- Number of bytes needed to store the string values.
sourcepub fn append_value<S: AsRef<str>>(&mut self, v: S)
pub fn append_value<S: AsRef<str>>(&mut self, v: S)
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_option<S: AsRef<str>>(&mut self, opt: Option<S>)
pub fn finish(self) -> StringChunked
Trait Implementations§
source§impl Clone for StringChunkedBuilder
impl Clone for StringChunkedBuilder
source§fn clone(&self) -> StringChunkedBuilder
fn clone(&self) -> StringChunkedBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for StringChunkedBuilder
impl Send for StringChunkedBuilder
impl Sync for StringChunkedBuilder
impl Unpin for StringChunkedBuilder
impl !UnwindSafe for StringChunkedBuilder
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