pub trait AySample: Num + Copy {
// Required methods
fn to_i8(self) -> i8;
fn to_i16(self) -> i16;
fn to_i32(self) -> i32;
fn to_f32(self) -> f32;
fn to_f64(self) -> f64;
}
Expand description
Required Methods§
fn to_i8(self) -> i8
fn to_i16(self) -> i16
fn to_i32(self) -> i32
fn to_f32(self) -> f32
fn to_f64(self) -> f64
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.