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
Loading content...Required methods
fn sin(self) -> Self
[src]
Calculate the sine of self
.
fn cos(self) -> Self
[src]
Calculate the cosine of self
.
Provided methods
fn coerce<T>(value: T) -> Self where
Self: CoerceFrom<T>,
[src]
Self: CoerceFrom<T>,
Coerce value
into the current type.
Coercions are governed through the [CoerceFrom] trait.