Struct polars_core::chunked_array::builder::Utf8ChunkedBuilder
source · pub struct Utf8ChunkedBuilder {
pub capacity: usize,
/* private fields */
}
Fields§
§capacity: usize
Implementations§
source§impl Utf8ChunkedBuilder
impl Utf8ChunkedBuilder
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 UtfChunkedBuilder
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) -> Utf8Chunked
Trait Implementations§
source§impl Clone for Utf8ChunkedBuilder
impl Clone for Utf8ChunkedBuilder
source§fn clone(&self) -> Utf8ChunkedBuilder
fn clone(&self) -> Utf8ChunkedBuilder
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 Utf8ChunkedBuilder
impl Send for Utf8ChunkedBuilder
impl Sync for Utf8ChunkedBuilder
impl Unpin for Utf8ChunkedBuilder
impl UnwindSafe for Utf8ChunkedBuilder
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