Trait polars::chunked_array::builder::alloc::NativeType [−]
pub unsafe trait NativeType: 'static + Copy + Debug + Display + PartialEq<Self> + Default { type Bytes: AsRef<[u8]>; fn is_valid(data_type: &DataType) -> bool; fn to_le_bytes(&self) -> Self::Bytes; }
Expand description
A type that Rust’s custom allocator knows how to allocate and deallocate. This is implemented for all Arrow’s physical types whose in-memory representation matches Rust’s physical types. Consider this trait sealed.
Safety
Do not implement this trait.
Associated Types
Required methods
Whether a DataType is a valid type for this physical representation.
fn to_le_bytes(&self) -> Self::Bytes
fn to_le_bytes(&self) -> Self::Bytes
How this type represents itself as bytes in little endianess. This is used for IPC, where data is communicated with a specific endianess.
Implementations on Foreign Types
impl NativeType for u32
impl NativeType for u32
impl NativeType for f64
impl NativeType for f64
impl NativeType for u64
impl NativeType for u64
impl NativeType for u16
impl NativeType for u16
impl NativeType for i32
impl NativeType for i32
impl NativeType for i64
impl NativeType for i64
impl NativeType for i8
impl NativeType for i8
impl NativeType for i16
impl NativeType for i16
impl NativeType for f32
impl NativeType for f32
impl NativeType for u8
impl NativeType for u8