pub trait AnonymousObjectBuilder {
// Required methods
fn append_null(&mut self);
fn append_value(&mut self, value: &(dyn Any + 'static));
fn to_series(&mut self) -> Series;
fn get_list_builder(
&self,
name: PlSmallStr,
values_capacity: usize,
list_capacity: usize,
) -> Box<dyn ListBuilderTrait>;
// Provided method
fn append_option(&mut self, value: Option<&(dyn Any + 'static)>) { ... }
}
Available on crate feature
object
only.Expand description
This trait can be registered, after which that global registration can be used to materialize object types
Required Methods§
Sourcefn append_null(&mut self)
fn append_null(&mut self)
Append a null
value.
Sourcefn append_value(&mut self, value: &(dyn Any + 'static))
fn append_value(&mut self, value: &(dyn Any + 'static))
Append a T
of ObjectChunked<T>
made generic via the Any
trait.
Sourcefn to_series(&mut self) -> Series
fn to_series(&mut self) -> Series
Take the current state and materialize as a Series
the builder should not be used after that.