pub trait IntoSample: Copy + Default {
// Required methods
fn to_i16(&self) -> i16;
fn to_i20(&self) -> i32;
fn to_i24(&self) -> i32;
// Provided method
fn to_bps_level(&self, bps: BpsLevel) -> FLAC__int32 { ... }
}Expand description
f32 and f64 in [-1.0, 1.0].
Required Methods§
Provided Methods§
fn to_bps_level(&self, bps: BpsLevel) -> FLAC__int32
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.