Skip to main content

Sample

Trait Sample 

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

Sample marker trait for supported plane sample types.

Required Associated Constants§

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§

§

impl Sample for f32

§

const SAMPLE_TYPE: SampleType = SampleType::F32

§

impl Sample for u8

§

const SAMPLE_TYPE: SampleType = SampleType::U8

§

impl Sample for u16

§

const SAMPLE_TYPE: SampleType = SampleType::U16

Implementors§