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 Constants§
Required Associated Types§
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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.