Trait polars::datatypes::LogicalType  
source · pub trait LogicalType {
    // Required methods
    fn dtype(&self) -> &DataType;
    fn cast_with_options(
        &self,
        dtype: &DataType,
        options: CastOptions
    ) -> Result<Series, PolarsError>;
    // Provided methods
    fn get_any_value(&self, _i: usize) -> Result<AnyValue<'_>, PolarsError> { ... }
    unsafe fn get_any_value_unchecked(&self, _i: usize) -> AnyValue<'_> { ... }
    fn cast(&self, dtype: &DataType) -> Result<Series, PolarsError> { ... }
}Required Methods§
sourcefn dtype(&self) -> &DataType
 
fn dtype(&self) -> &DataType
Get data type of ChunkedArray.
fn cast_with_options( &self, dtype: &DataType, options: CastOptions ) -> Result<Series, PolarsError>
Provided Methods§
sourcefn get_any_value(&self, _i: usize) -> Result<AnyValue<'_>, PolarsError>
 
fn get_any_value(&self, _i: usize) -> Result<AnyValue<'_>, PolarsError>
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.