Trait rubato::Sample[][src]

pub trait Sample where
    Self: Copy + CoerceFrom<usize> + CoerceFrom<f64> + CoerceFrom<f32> + FftNum + Mul + Div + Add + Sub + MulAssign + RemAssign + DivAssign + SubAssign + AddAssign + AvxSample + SseSample + NeonSample
{ const PI: Self; fn sin(self) -> Self;
fn cos(self) -> Self; fn coerce<T>(value: T) -> Self
    where
        Self: CoerceFrom<T>
, { ... } }
Expand description

The trait governing a single sample.

There are two types which implements this trait so far:

Associated Constants

Required methods

Calculate the sine of self.

Calculate the cosine of self.

Provided methods

Coerce value into the current type.

Coercions are governed through the private CoerceFrom trait.

Implementations on Foreign Types

Implementors