Struct polars::prelude::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
) -> Utf8ChunkedBuilder
pub fn new( name: &str, capacity: usize, bytes_capacity: usize ) -> Utf8ChunkedBuilder
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>(&mut self, v: S)where
S: AsRef<str>,
pub fn append_value<S>(&mut self, v: S)where S: AsRef<str>,
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>(&mut self, opt: Option<S>)where S: AsRef<str>,
pub fn finish(self) -> ChunkedArray<Utf8Type>
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