Trait parquet2::types::NativeType
source · pub trait NativeType: Debug + Send + Sync + 'static + Copy + Clone {
type Bytes: AsRef<[u8]> + for<'a> TryFrom<&'a [u8], Error = TryFromSliceError>;
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 Types§
Required Associated Constants§
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
Object Safety§
This trait is not object safe.