devela::_dep::symphonia::core::conv

Trait FromSample

pub trait FromSample<F> {
    // Required method
    fn from_sample(val: F) -> Self;
}
Available on crate feature dep_symphonia only.
Expand description

FromSample implements a conversion from Sample type F to Self.

This may be a lossy conversion if converting from a sample type of higher precision to one of lower precision. No dithering is applied.

Required Methods§

fn from_sample(val: F) -> Self

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

§

impl FromSample<f32> for f64

§

impl FromSample<f32> for i8

§

impl FromSample<f32> for i16

§

impl FromSample<f32> for i32

§

impl FromSample<f32> for u8

§

impl FromSample<f32> for u16

§

impl FromSample<f32> for u32

§

impl FromSample<f64> for f32

§

impl FromSample<f64> for f64

§

impl FromSample<f64> for i8

§

impl FromSample<f64> for i16

§

impl FromSample<f64> for i32

§

impl FromSample<f64> for u8

§

impl FromSample<f64> for u16

§

impl FromSample<f64> for u32

§

impl FromSample<i8> for f32

§

impl FromSample<i8> for f64

§

impl FromSample<i8> for i8

§

impl FromSample<i8> for i16

§

impl FromSample<i8> for i32

§

impl FromSample<i8> for u8

§

impl FromSample<i8> for u16

§

impl FromSample<i8> for u32

§

impl FromSample<i16> for f32

§

impl FromSample<i16> for f64

§

impl FromSample<i16> for i8

§

impl FromSample<i16> for i16

§

impl FromSample<i16> for i32

§

impl FromSample<i16> for u8

§

impl FromSample<i16> for u16

§

impl FromSample<i16> for u32

§

impl FromSample<i32> for f32

§

impl FromSample<i32> for f64

§

impl FromSample<i32> for i8

§

impl FromSample<i32> for i16

§

impl FromSample<i32> for i32

§

impl FromSample<i32> for u8

§

impl FromSample<i32> for u16

§

impl FromSample<i32> for u32

§

impl FromSample<u8> for f32

§

impl FromSample<u8> for f64

§

impl FromSample<u8> for i8

§

impl FromSample<u8> for i16

§

impl FromSample<u8> for i32

§

impl FromSample<u8> for u8

§

impl FromSample<u8> for u16

§

impl FromSample<u8> for u32

§

impl FromSample<u16> for f32

§

impl FromSample<u16> for f64

§

impl FromSample<u16> for i8

§

impl FromSample<u16> for i16

§

impl FromSample<u16> for i32

§

impl FromSample<u16> for u8

§

impl FromSample<u16> for u16

§

impl FromSample<u16> for u32

§

impl FromSample<u32> for f32

§

impl FromSample<u32> for f64

§

impl FromSample<u32> for i8

§

impl FromSample<u32> for i16

§

impl FromSample<u32> for i32

§

impl FromSample<u32> for u8

§

impl FromSample<u32> for u16

§

impl FromSample<u32> for u32

§

impl FromSample<i24> for f32

§

impl FromSample<i24> for f64

§

impl FromSample<i24> for i8

§

impl FromSample<i24> for i16

§

impl FromSample<i24> for i32

§

impl FromSample<i24> for u8

§

impl FromSample<i24> for u16

§

impl FromSample<i24> for u32

§

impl FromSample<u24> for f32

§

impl FromSample<u24> for f64

§

impl FromSample<u24> for i8

§

impl FromSample<u24> for i16

§

impl FromSample<u24> for i32

§

impl FromSample<u24> for u8

§

impl FromSample<u24> for u16

§

impl FromSample<u24> for u32

Implementors§

§

impl FromSample<f32> for i24

§

impl FromSample<f32> for u24

§

impl FromSample<f64> for i24

§

impl FromSample<f64> for u24

§

impl FromSample<i8> for i24

§

impl FromSample<i8> for u24

§

impl FromSample<i16> for i24

§

impl FromSample<i16> for u24

§

impl FromSample<i32> for i24

§

impl FromSample<i32> for u24

§

impl FromSample<u8> for i24

§

impl FromSample<u8> for u24

§

impl FromSample<u16> for i24

§

impl FromSample<u16> for u24

§

impl FromSample<u32> for i24

§

impl FromSample<u32> for u24

§

impl FromSample<i24> for i24

§

impl FromSample<i24> for u24

§

impl FromSample<u24> for i24

§

impl FromSample<u24> for u24