Skip to main content

StorageSample

Trait StorageSample 

Source
pub trait StorageSample:
    Sealed
    + Pod
    + Default
    + PartialEq
    + Debug
    + Send
    + Sync
    + 'static {
    const SAMPLE_TYPE: SampleType;
}
Expand description

Sealed trait implemented by the 11 native sample types stored in PixelStorage.

Required Associated Constants§

Source

const SAMPLE_TYPE: SampleType

Corresponding SampleType variant.

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

Source§

const SAMPLE_TYPE: SampleType = SampleType::F32

Source§

impl StorageSample for f64

Source§

const SAMPLE_TYPE: SampleType = SampleType::F64

Source§

impl StorageSample for i8

Source§

const SAMPLE_TYPE: SampleType = SampleType::I8

Source§

impl StorageSample for i16

Source§

const SAMPLE_TYPE: SampleType = SampleType::I16

Source§

impl StorageSample for i32

Source§

const SAMPLE_TYPE: SampleType = SampleType::I32

Source§

impl StorageSample for i64

Source§

const SAMPLE_TYPE: SampleType = SampleType::I64

Source§

impl StorageSample for u8

Source§

const SAMPLE_TYPE: SampleType = SampleType::U8

Source§

impl StorageSample for u16

Source§

const SAMPLE_TYPE: SampleType = SampleType::U16

Source§

impl StorageSample for u32

Source§

const SAMPLE_TYPE: SampleType = SampleType::U32

Source§

impl StorageSample for u64

Source§

const SAMPLE_TYPE: SampleType = SampleType::U64

Implementors§