pub trait Samples {
// Required methods
fn num_samples(&self) -> usize;
fn truncate(&mut self, limit: usize);
fn from_floats(floats: Vec<Vec<f32>>) -> Self;
}
Expand description
Trait for a packet of multiple samples
Required Methods§
fn num_samples(&self) -> usize
fn truncate(&mut self, limit: usize)
fn from_floats(floats: Vec<Vec<f32>>) -> 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.