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>
, { ... } }

The trait governing a single sample.

There are two types which implements this trait so far:

Associated Constants

const PI: Self[src]

Loading content...

Required methods

fn sin(self) -> Self[src]

Calculate the sine of self.

fn cos(self) -> Self[src]

Calculate the cosine of self.

Loading content...

Provided methods

fn coerce<T>(value: T) -> Self where
    Self: CoerceFrom<T>, 
[src]

Coerce value into the current type.

Coercions are governed through the [CoerceFrom] trait.

Loading content...

Implementations on Foreign Types

impl Sample for f32[src]

const PI: Self[src]

fn sin(self) -> Self[src]

fn cos(self) -> Self[src]

impl Sample for f64[src]

const PI: Self[src]

fn sin(self) -> Self[src]

fn cos(self) -> Self[src]

Loading content...

Implementors

Loading content...