symphonia_core::conv

Trait IntoSample

Source
pub trait IntoSample<T> {
    // Required method
    fn into_sample(self) -> T;
}
Expand description

IntoSample implements a conversion from Self to Sample type T.

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§

Source

fn into_sample(self) -> T

Implementors§

Source§

impl<F, T: FromSample<F>> IntoSample<T> for F