pub trait NativeType:
Debug
+ Send
+ Sync
+ 'static
+ Copy
+ Clone {
type Bytes: AsRef<[u8]> + Pod + IntoIterator<Item = u8> + for<'a> TryFrom<&'a [u8], Error = TryFromSliceError> + Debug + Clone + Copy;
const TYPE: PhysicalType;
// Required methods
fn to_le_bytes(&self) -> Self::Bytes;
fn from_le_bytes(bytes: Self::Bytes) -> Self;
fn ord(&self, other: &Self) -> Ordering;
}
Expand description
A physical native representation of a Parquet fixed-sized type.
Required Associated Constants§
const TYPE: PhysicalType
Required Associated Types§
type Bytes: AsRef<[u8]> + Pod + IntoIterator<Item = u8> + for<'a> TryFrom<&'a [u8], Error = TryFromSliceError> + Debug + Clone + Copy
Required Methods§
fn to_le_bytes(&self) -> Self::Bytes
fn from_le_bytes(bytes: Self::Bytes) -> Self
fn ord(&self, other: &Self) -> Ordering
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.