pub trait Sample:
Copy
+ Send
+ Sync
+ 'static
+ Sealed {
const ZERO: Self;
const IS_F64: bool;
// Required methods
fn from_f32(value: f32) -> Self;
fn to_f32(self) -> f32;
}Expand description
Audio sample scalar — f32 or f64.
Implemented by f32 and f64 only. The bound exists so the
crate::Plugin trait can be parameterised over precision
without leaking the full numeric trait surface.
Required Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".