Trait polars_arrow::array::ViewType
source · pub trait ViewType: Sealed + 'static + PartialEq + AsRef<Self> {
type Owned: Debug + Clone + Sync + Send + AsRef<Self>;
const IS_UTF8: bool;
const DATA_TYPE: ArrowDataType;
// Required methods
unsafe fn from_bytes_unchecked(slice: &[u8]) -> &Self;
fn to_bytes(&self) -> &[u8] ⓘ;
fn into_owned(&self) -> Self::Owned;
fn dtype() -> &'static ArrowDataType;
}
Required Associated Types§
Required Associated Constants§
Required Methods§
sourceunsafe fn from_bytes_unchecked(slice: &[u8]) -> &Self
unsafe fn from_bytes_unchecked(slice: &[u8]) -> &Self
§Safety
The caller must ensure index < self.len()
.
fn to_bytes(&self) -> &[u8] ⓘ
fn into_owned(&self) -> Self::Owned
fn dtype() -> &'static ArrowDataType
Object Safety§
This trait is not object safe.