devela::_dep::rodio::cpal

Trait SizedSample

pub trait SizedSample: Sample {
    const FORMAT: SampleFormat;
}
Available on crate feature dep_rodio only.

Required Associated Constants§

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

§

const FORMAT: SampleFormat = SampleFormat::F32

§

impl SizedSample for f64

§

const FORMAT: SampleFormat = SampleFormat::F64

§

impl SizedSample for i8

§

const FORMAT: SampleFormat = SampleFormat::I8

§

impl SizedSample for i16

§

const FORMAT: SampleFormat = SampleFormat::I16

§

impl SizedSample for i32

§

const FORMAT: SampleFormat = SampleFormat::I32

§

impl SizedSample for i64

§

const FORMAT: SampleFormat = SampleFormat::I64

§

impl SizedSample for u8

§

const FORMAT: SampleFormat = SampleFormat::U8

§

impl SizedSample for u16

§

const FORMAT: SampleFormat = SampleFormat::U16

§

impl SizedSample for u32

§

const FORMAT: SampleFormat = SampleFormat::U32

§

impl SizedSample for u64

§

const FORMAT: SampleFormat = SampleFormat::U64

Implementors§