lewton::samples

Trait Samples

Source
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§

Source

fn num_samples(&self) -> usize

Source

fn truncate(&mut self, limit: usize)

Source

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.

Implementations on Foreign Types§

Source§

impl<S: Sample> Samples for Vec<Vec<S>>

Source§

fn num_samples(&self) -> usize

Source§

fn truncate(&mut self, limit: usize)

Source§

fn from_floats(floats: Vec<Vec<f32>>) -> Self

Implementors§