Skip to main content

Sample

Trait Sample 

Source
pub trait Sample:
    Copy
    + Default
    + Send
    + Sync
    + 'static {
    const TYPE: SampleType;
    const BITS: u8;
}
Expand description

Supported integer sample type for row-oriented APIs.

Required Associated Constants§

Source

const TYPE: SampleType

Runtime sample type tag.

Source

const BITS: u8

Number of significant bits in the sample type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Sample for u8

Source§

const TYPE: SampleType = SampleType::U8

Source§

const BITS: u8 = 8

Source§

impl Sample for u16

Source§

const TYPE: SampleType = SampleType::U16

Source§

const BITS: u8 = 16

Implementors§