Trait lewton::samples::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

Object Safety§

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§