Skip to main content

FromF32

Trait FromF32 

Source
pub trait FromF32 {
    // Required method
    fn from_f32(v: f32) -> Self;
}
Expand description

Conversion trait from f32 to a sample type.

Required Methods§

Source

fn from_f32(v: 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 FromF32 for f32

Source§

fn from_f32(v: f32) -> Self

Source§

impl FromF32 for u8

Source§

fn from_f32(v: f32) -> Self

Source§

impl FromF32 for u16

Source§

fn from_f32(v: f32) -> Self

Implementors§