Struct sampler::map::Sample [] [src]

pub struct Sample<A> {
    pub base_hz: Hz,
    pub base_vel: Velocity,
    pub audio: A,
}

A performable Sample with some base playback Hz and Velocity.

Fields

base_hz: Hz base_vel: Velocity audio: A

Methods

impl<A> Sample<A>
[src]

fn new(base_hz: Hz, base_vel: Velocity, audio: A) -> Self

Constructor for a new Sample with the given base Hz and Velocity.

Trait Implementations

impl<A: PartialEq> PartialEq for Sample<A>
[src]

fn eq(&self, __arg_0: &Sample<A>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Sample<A>) -> bool

This method tests for !=.

impl<A: Debug> Debug for Sample<A>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<A: Clone> Clone for Sample<A>
[src]

fn clone(&self) -> Sample<A>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more