pub trait ChunkAnyValue {
// Required methods
unsafe fn get_any_value_unchecked(&self, index: usize) -> AnyValue<'_>;
fn get_any_value(&self, index: usize) -> PolarsResult<AnyValue<'_>>;
}Required Methods§
Sourceunsafe fn get_any_value_unchecked(&self, index: usize) -> AnyValue<'_>
unsafe fn get_any_value_unchecked(&self, index: usize) -> AnyValue<'_>
Get a single value. Beware this is slow. If you need to use this slightly performant, cast Categorical to UInt32
§Safety
Does not do any bounds checking.
Sourcefn get_any_value(&self, index: usize) -> PolarsResult<AnyValue<'_>>
fn get_any_value(&self, index: usize) -> PolarsResult<AnyValue<'_>>
Get a single value. Beware this is slow.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl ChunkAnyValue for ArrayChunked
Available on crate feature
dtype-array only.impl ChunkAnyValue for BinaryChunked
impl ChunkAnyValue for BinaryOffsetChunked
impl ChunkAnyValue for BooleanChunked
impl ChunkAnyValue for ListChunked
impl ChunkAnyValue for NullChunked
impl ChunkAnyValue for StringChunked
impl<T: PolarsObject> ChunkAnyValue for ObjectChunked<T>
Available on crate feature
object only.