pub trait Sample: Sealed + Copy {
// Required method
fn to_f32(self) -> f32;
}Expand description
A sample type accepted by Analyzer::push_planar and
Analyzer::push_interleaved.
Sealed: only f32 (and f64 under the f64 feature) implement this
trait. Adding more sample types is a deliberate API change.
Required Methods§
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.