Trait cpal::SizedSample

source ·
pub trait SizedSample: Sample {
    const FORMAT: SampleFormat;
}

Required Associated Constants§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl SizedSample for f32

source§

const FORMAT: SampleFormat = SampleFormat::F32

source§

impl SizedSample for f64

source§

const FORMAT: SampleFormat = SampleFormat::F64

source§

impl SizedSample for i8

source§

const FORMAT: SampleFormat = SampleFormat::I8

source§

impl SizedSample for i16

source§

const FORMAT: SampleFormat = SampleFormat::I16

source§

impl SizedSample for i32

source§

const FORMAT: SampleFormat = SampleFormat::I32

source§

impl SizedSample for i64

source§

const FORMAT: SampleFormat = SampleFormat::I64

source§

impl SizedSample for u8

source§

const FORMAT: SampleFormat = SampleFormat::U8

source§

impl SizedSample for u16

source§

const FORMAT: SampleFormat = SampleFormat::U16

source§

impl SizedSample for u32

source§

const FORMAT: SampleFormat = SampleFormat::U32

source§

impl SizedSample for u64

source§

const FORMAT: SampleFormat = SampleFormat::U64

Implementors§