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.