Struct polars_core::prelude::Utf8ChunkedBuilder
source · [−]pub struct Utf8ChunkedBuilder {
pub builder: MutableUtf8Array<i64>,
pub capacity: usize,
/* private fields */
}
Fields
builder: MutableUtf8Array<i64>
capacity: usize
Implementations
sourceimpl 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
Auto Trait Implementations
impl RefUnwindSafe for Utf8ChunkedBuilder
impl Send for Utf8ChunkedBuilder
impl Sync for Utf8ChunkedBuilder
impl Unpin for Utf8ChunkedBuilder
impl UnwindSafe for Utf8ChunkedBuilder
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