Skip to main content

SampleConvert

Trait SampleConvert 

Source
pub trait SampleConvert {
    // Required methods
    fn to_f32(self) -> f32;
    fn from_f32(sample: f32) -> Self;
}

Required Methods§

Source

fn to_f32(self) -> f32

Source

fn from_f32(sample: f32) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl SampleConvert for f32

Source§

fn to_f32(self) -> f32

Source§

fn from_f32(sample: f32) -> Self

Source§

impl SampleConvert for i16

Source§

fn to_f32(self) -> f32

Source§

fn from_f32(sample: f32) -> Self

Source§

impl SampleConvert for i32

Source§

fn to_f32(self) -> f32

Source§

fn from_f32(sample: f32) -> Self

Implementors§