IntoSample

Trait IntoSample 

Source
pub trait IntoSample: Copy + Default {
    // Required methods
    fn to_i16(&self) -> i16;
    fn to_i20(&self) -> i32;
    fn to_i24(&self) -> i32;

    // Provided method
    fn to_bps_level(&self, bps: BpsLevel) -> FLAC__int32 { ... }
}
Expand description

f32 and f64 in [-1.0, 1.0].

Required Methods§

Source

fn to_i16(&self) -> i16

Source

fn to_i20(&self) -> i32

Source

fn to_i24(&self) -> i32

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IntoSample for f32

Source§

fn to_i16(&self) -> i16

Source§

fn to_i20(&self) -> i32

Source§

fn to_i24(&self) -> i32

Source§

impl IntoSample for f64

Source§

fn to_i16(&self) -> i16

Source§

fn to_i20(&self) -> i32

Source§

fn to_i24(&self) -> i32

Implementors§