Struct polars::prelude::BinaryChunkedBuilder
source · pub struct BinaryChunkedBuilder {
pub capacity: usize,
/* private fields */
}
Fields§
§capacity: usize
Implementations§
source§impl BinaryChunkedBuilder
impl BinaryChunkedBuilder
sourcepub fn new(
name: &str,
capacity: usize,
bytes_capacity: usize
) -> BinaryChunkedBuilder
pub fn new( name: &str, capacity: usize, bytes_capacity: usize ) -> BinaryChunkedBuilder
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<[u8]>,
pub fn append_value<S>(&mut self, v: S)where S: AsRef<[u8]>,
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<[u8]>,
pub fn finish(self) -> ChunkedArray<BinaryType>
Auto Trait Implementations§
impl RefUnwindSafe for BinaryChunkedBuilder
impl Send for BinaryChunkedBuilder
impl Sync for BinaryChunkedBuilder
impl Unpin for BinaryChunkedBuilder
impl UnwindSafe for BinaryChunkedBuilder
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