pub struct CategoricalChunkedBuilder { /* private fields */ }
Implementations§
Source§impl CategoricalChunkedBuilder
impl CategoricalChunkedBuilder
pub fn new( name: PlSmallStr, capacity: usize, ordering: CategoricalOrdering, ) -> CategoricalChunkedBuilder
Available on crate feature
dtype-categorical
only.Sourcepub fn register_value(&mut self, s: &str) -> (u32, bool)
Available on crate feature dtype-categorical
only.
pub fn register_value(&mut self, s: &str) -> (u32, bool)
dtype-categorical
only.Registers a value to a categorical index without pushing it. Returns the index and if the value was new.
pub fn append_value(&mut self, s: &str)
Available on crate feature
dtype-categorical
only.pub fn append_null(&mut self)
Available on crate feature
dtype-categorical
only.pub fn append(&mut self, opt_s: Option<&str>)
Available on crate feature
dtype-categorical
only.pub fn drain_iter_and_finish<'a, I>(self, i: I) -> CategoricalChunked
Available on crate feature
dtype-categorical
only.pub fn finish(self) -> CategoricalChunked
Available on crate feature
dtype-categorical
only.Auto Trait Implementations§
impl Freeze for CategoricalChunkedBuilder
impl RefUnwindSafe for CategoricalChunkedBuilder
impl Send for CategoricalChunkedBuilder
impl Sync for CategoricalChunkedBuilder
impl Unpin for CategoricalChunkedBuilder
impl UnwindSafe for CategoricalChunkedBuilder
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more