pub trait ChunkAnyValue {
// Required methods
unsafe fn get_any_value_unchecked(&self, index: usize) -> AnyValue<'_>;
fn get_any_value(&self, index: usize) -> Result<AnyValue<'_>, PolarsError>;
}
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) -> Result<AnyValue<'_>, PolarsError>
fn get_any_value(&self, index: usize) -> Result<AnyValue<'_>, PolarsError>
Get a single value. Beware this is slow.
Implementors§
impl ChunkAnyValue for ChunkedArray<BinaryOffsetType>
impl ChunkAnyValue for ChunkedArray<BinaryType>
impl ChunkAnyValue for ChunkedArray<BooleanType>
impl ChunkAnyValue for ChunkedArray<FixedSizeListType>
Available on crate feature
dtype-array
only.impl ChunkAnyValue for ChunkedArray<ListType>
impl ChunkAnyValue for ChunkedArray<StringType>
impl ChunkAnyValue for ChunkedArray<StructType>
Available on crate feature
dtype-struct
only.impl<T> ChunkAnyValue for ChunkedArray<ObjectType<T>>where
T: PolarsObject,
Available on crate feature
object
only.