Trait PcoElement

Source
pub trait PcoElement: Copy + Number {
    const DTYPE: PcoDType;
}
Expand description

Array element types which can be compressed with pco.

Required Associated Constants§

Source

const DTYPE: PcoDType

The dtype representation of the type

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 PcoElement for f32

Source§

const DTYPE: PcoDType = PcoDType::F32

Source§

impl PcoElement for f64

Source§

const DTYPE: PcoDType = PcoDType::F64

Source§

impl PcoElement for i16

Source§

const DTYPE: PcoDType = PcoDType::I16

Source§

impl PcoElement for i32

Source§

const DTYPE: PcoDType = PcoDType::I32

Source§

impl PcoElement for i64

Source§

const DTYPE: PcoDType = PcoDType::I64

Source§

impl PcoElement for u16

Source§

const DTYPE: PcoDType = PcoDType::U16

Source§

impl PcoElement for u32

Source§

const DTYPE: PcoDType = PcoDType::U32

Source§

impl PcoElement for u64

Source§

const DTYPE: PcoDType = PcoDType::U64

Implementors§