Trait lewton::samples::Sample

source ·
pub trait Sample {
    // Required method
    fn from_float(fl: f32) -> Self;
}
Expand description

Trait representing a single sample

Required Methods§

source

fn from_float(fl: f32) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Sample for f32

source§

fn from_float(fl: f32) -> Self

source§

impl Sample for i16

source§

fn from_float(fl: f32) -> Self

Implementors§