[−][src]Trait spectrusty::audio::FromSample
For converting samples between types.
Required methods
fn from_sample(other: S) -> Self
Converts to Self a sample from the other
.
Implementations on Foreign Types
impl FromSample<u16> for i16
[src]
fn from_sample(other: u16) -> i16
[src]
impl FromSample<f32> for u16
[src]
fn from_sample(other: f32) -> u16
[src]
impl FromSample<i16> for f32
[src]
fn from_sample(other: i16) -> f32
[src]
impl FromSample<i8> for f32
[src]
fn from_sample(other: i8) -> f32
[src]
impl FromSample<u8> for i8
[src]
fn from_sample(other: u8) -> i8
[src]
impl FromSample<f32> for i8
[src]
fn from_sample(other: f32) -> i8
[src]
impl FromSample<u16> for f32
[src]
fn from_sample(other: u16) -> f32
[src]
impl FromSample<u8> for f32
[src]
fn from_sample(other: u8) -> f32
[src]
impl FromSample<i16> for u16
[src]
fn from_sample(other: i16) -> u16
[src]
impl FromSample<i8> for u8
[src]
fn from_sample(other: i8) -> u8
[src]
impl FromSample<f32> for u8
[src]
fn from_sample(other: f32) -> u8
[src]
impl FromSample<f32> for i16
[src]
fn from_sample(other: f32) -> i16
[src]
Implementors
impl<T> FromSample<T> for T where
T: AudioSample,
[src]
T: AudioSample,