polars_parquet::parquet::encoding::bitpacked

Trait Packed

Source
pub trait Packed:
    Copy
    + Sized
    + AsRef<[u8]>
    + AsMut<[u8]>
    + IndexMut<usize, Output = u8>
    + for<'a> TryFrom<&'a [u8]> {
    const LENGTH: usize;

    // Required method
    fn zero() -> Self;
}
Expand description

A byte slice (e.g. [u8; 8]) denoting types that represent complete packs.

Required Associated Constants§

Required Methods§

Source

fn zero() -> Self

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.

Implementations on Foreign Types§

Source§

impl Packed for [u8; 8]

Source§

const LENGTH: usize = 8usize

Source§

fn zero() -> Self

Source§

impl Packed for [u8; 32]

Source§

const LENGTH: usize = 32usize

Source§

fn zero() -> Self

Source§

impl Packed for [u8; 128]

Source§

const LENGTH: usize = 128usize

Source§

fn zero() -> Self

Source§

impl Packed for [u8; 512]

Source§

const LENGTH: usize = 512usize

Source§

fn zero() -> Self

Implementors§