Trait polars_core::datatypes::LogicalType
source · pub trait LogicalType {
fn dtype(&self) -> &DataType;
fn cast(&self, dtype: &DataType) -> PolarsResult<Series>;
fn get_any_value(&self, _i: usize) -> PolarsResult<AnyValue<'_>> { ... }
unsafe fn get_any_value_unchecked(&self, _i: usize) -> AnyValue<'_> { ... }
}
Required Methods§
fn cast(&self, dtype: &DataType) -> PolarsResult<Series>
Provided Methods§
sourcefn get_any_value(&self, _i: usize) -> PolarsResult<AnyValue<'_>>
fn get_any_value(&self, _i: usize) -> PolarsResult<AnyValue<'_>>
Gets AnyValue from LogicalType
sourceunsafe fn get_any_value_unchecked(&self, _i: usize) -> AnyValue<'_>
unsafe fn get_any_value_unchecked(&self, _i: usize) -> AnyValue<'_>
Safety
Does not do any bound checks.
Implementors§
impl LogicalType for CategoricalChunked
Available on crate feature
dtype-categorical
only.impl LogicalType for StructChunked
Available on crate feature
dtype-struct
only.impl LogicalType for DateChunked
Available on crate feature
dtype-date
only.impl LogicalType for DatetimeChunked
Available on crate feature
dtype-datetime
only.impl LogicalType for DurationChunked
Available on crate feature
dtype-duration
only.impl LogicalType for TimeChunked
Available on crate feature
dtype-time
only.