Trait dsp::conv::FromSample
[−]
[src]
pub trait FromSample<S> { fn from_sample_(s: S) -> Self; }
Similar to the std From
trait, but specifically for converting between sample types.
We use this trait to be generic over the Sample::to_sample
and Sample::from_sample
methods.
Required Methods
fn from_sample_(s: S) -> Self
Implementors
impl<S> FromSample<S> for S
impl FromSample<i16> for i8
impl FromSample<I24> for i8
impl FromSample<i32> for i8
impl FromSample<I48> for i8
impl FromSample<i64> for i8
impl FromSample<u8> for i8
impl FromSample<u16> for i8
impl FromSample<U24> for i8
impl FromSample<u32> for i8
impl FromSample<U48> for i8
impl FromSample<u64> for i8
impl FromSample<f32> for i8
impl FromSample<f64> for i8
impl FromSample<i8> for i16
impl FromSample<I24> for i16
impl FromSample<i32> for i16
impl FromSample<I48> for i16
impl FromSample<i64> for i16
impl FromSample<u8> for i16
impl FromSample<u16> for i16
impl FromSample<U24> for i16
impl FromSample<u32> for i16
impl FromSample<U48> for i16
impl FromSample<u64> for i16
impl FromSample<f32> for i16
impl FromSample<f64> for i16
impl FromSample<i8> for I24
impl FromSample<i16> for I24
impl FromSample<i32> for I24
impl FromSample<I48> for I24
impl FromSample<i64> for I24
impl FromSample<u8> for I24
impl FromSample<u16> for I24
impl FromSample<U24> for I24
impl FromSample<u32> for I24
impl FromSample<U48> for I24
impl FromSample<u64> for I24
impl FromSample<f32> for I24
impl FromSample<f64> for I24
impl FromSample<i8> for i32
impl FromSample<i16> for i32
impl FromSample<I24> for i32
impl FromSample<I48> for i32
impl FromSample<i64> for i32
impl FromSample<u8> for i32
impl FromSample<u16> for i32
impl FromSample<U24> for i32
impl FromSample<u32> for i32
impl FromSample<U48> for i32
impl FromSample<u64> for i32
impl FromSample<f32> for i32
impl FromSample<f64> for i32
impl FromSample<i8> for I48
impl FromSample<i16> for I48
impl FromSample<I24> for I48
impl FromSample<i32> for I48
impl FromSample<i64> for I48
impl FromSample<u8> for I48
impl FromSample<u16> for I48
impl FromSample<U24> for I48
impl FromSample<u32> for I48
impl FromSample<U48> for I48
impl FromSample<u64> for I48
impl FromSample<f32> for I48
impl FromSample<f64> for I48
impl FromSample<i8> for i64
impl FromSample<i16> for i64
impl FromSample<I24> for i64
impl FromSample<i32> for i64
impl FromSample<I48> for i64
impl FromSample<u8> for i64
impl FromSample<u16> for i64
impl FromSample<U24> for i64
impl FromSample<u32> for i64
impl FromSample<U48> for i64
impl FromSample<u64> for i64
impl FromSample<f32> for i64
impl FromSample<f64> for i64
impl FromSample<i8> for u8
impl FromSample<i16> for u8
impl FromSample<I24> for u8
impl FromSample<i32> for u8
impl FromSample<I48> for u8
impl FromSample<i64> for u8
impl FromSample<u16> for u8
impl FromSample<U24> for u8
impl FromSample<u32> for u8
impl FromSample<U48> for u8
impl FromSample<u64> for u8
impl FromSample<f32> for u8
impl FromSample<f64> for u8
impl FromSample<i8> for u16
impl FromSample<i16> for u16
impl FromSample<I24> for u16
impl FromSample<i32> for u16
impl FromSample<I48> for u16
impl FromSample<i64> for u16
impl FromSample<u8> for u16
impl FromSample<U24> for u16
impl FromSample<u32> for u16
impl FromSample<U48> for u16
impl FromSample<u64> for u16
impl FromSample<f32> for u16
impl FromSample<f64> for u16
impl FromSample<i8> for U24
impl FromSample<i16> for U24
impl FromSample<I24> for U24
impl FromSample<i32> for U24
impl FromSample<I48> for U24
impl FromSample<i64> for U24
impl FromSample<u8> for U24
impl FromSample<u16> for U24
impl FromSample<u32> for U24
impl FromSample<U48> for U24
impl FromSample<u64> for U24
impl FromSample<f32> for U24
impl FromSample<f64> for U24
impl FromSample<i8> for u32
impl FromSample<i16> for u32
impl FromSample<I24> for u32
impl FromSample<i32> for u32
impl FromSample<I48> for u32
impl FromSample<i64> for u32
impl FromSample<u8> for u32
impl FromSample<u16> for u32
impl FromSample<U24> for u32
impl FromSample<U48> for u32
impl FromSample<u64> for u32
impl FromSample<f32> for u32
impl FromSample<f64> for u32
impl FromSample<i8> for U48
impl FromSample<i16> for U48
impl FromSample<I24> for U48
impl FromSample<i32> for U48
impl FromSample<I48> for U48
impl FromSample<i64> for U48
impl FromSample<u8> for U48
impl FromSample<u16> for U48
impl FromSample<U24> for U48
impl FromSample<u32> for U48
impl FromSample<u64> for U48
impl FromSample<f32> for U48
impl FromSample<f64> for U48
impl FromSample<i8> for u64
impl FromSample<i16> for u64
impl FromSample<I24> for u64
impl FromSample<i32> for u64
impl FromSample<I48> for u64
impl FromSample<i64> for u64
impl FromSample<u8> for u64
impl FromSample<u16> for u64
impl FromSample<U24> for u64
impl FromSample<u32> for u64
impl FromSample<U48> for u64
impl FromSample<f32> for u64
impl FromSample<f64> for u64
impl FromSample<i8> for f32
impl FromSample<i16> for f32
impl FromSample<I24> for f32
impl FromSample<i32> for f32
impl FromSample<I48> for f32
impl FromSample<i64> for f32
impl FromSample<u8> for f32
impl FromSample<u16> for f32
impl FromSample<U24> for f32
impl FromSample<u32> for f32
impl FromSample<U48> for f32
impl FromSample<u64> for f32
impl FromSample<f64> for f32
impl FromSample<i8> for f64
impl FromSample<i16> for f64
impl FromSample<I24> for f64
impl FromSample<i32> for f64
impl FromSample<I48> for f64
impl FromSample<i64> for f64
impl FromSample<u8> for f64
impl FromSample<u16> for f64
impl FromSample<U24> for f64
impl FromSample<u32> for f64
impl FromSample<U48> for f64
impl FromSample<u64> for f64
impl FromSample<f32> for f64