polars_core::chunked_array::object::registry

Trait AnonymousObjectBuilder

Source
pub trait AnonymousObjectBuilder {
    // Required methods
    fn append_null(&mut self);
    fn append_value(&mut self, value: &dyn Any);
    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>) { ... }
}
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§

Source

fn append_null(&mut self)

Append a null value.

Source

fn append_value(&mut self, value: &dyn Any)

Append a T of ObjectChunked<T> made generic via the Any trait.

Source

fn to_series(&mut self) -> Series

Take the current state and materialize as a Series the builder should not be used after that.

Source

fn get_list_builder( &self, name: PlSmallStr, values_capacity: usize, list_capacity: usize, ) -> Box<dyn ListBuilderTrait>

Provided Methods§

Source

fn append_option(&mut self, value: Option<&dyn Any>)

Implementors§