Skip to main content

Sample

Trait Sample 

Source
pub trait Sample:
    Sealed
    + Copy
    + 'static {
    const SAMPLE_TYPE: SampleType;
}
Expand description

Sample marker trait for supported plane sample types.

Required Associated Constants§

Source

const SAMPLE_TYPE: SampleType

Matching storage sample 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 Sample for f32

Source§

const SAMPLE_TYPE: SampleType = SampleType::F32

Source§

impl Sample for u8

Source§

const SAMPLE_TYPE: SampleType = SampleType::U8

Source§

impl Sample for u16

Source§

const SAMPLE_TYPE: SampleType = SampleType::U16

Implementors§