Skip to main content

DeviceSample

Trait DeviceSample 

Source
pub trait DeviceSample: Copy {
    // Required method
    fn from_mix(sample: i16) -> Self;
}
Expand description

A sample a device can take, from one of the mix’s.

Required Methods§

Source

fn from_mix(sample: i16) -> Self

sample as this format: the same fraction of full scale.

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 DeviceSample for f32

Source§

fn from_mix(sample: i16) -> Self

Source§

impl DeviceSample for f64

Source§

fn from_mix(sample: i16) -> Self

Source§

impl DeviceSample for i16

Source§

fn from_mix(sample: i16) -> Self

Source§

impl DeviceSample for i32

Source§

fn from_mix(sample: i16) -> Self

Source§

impl DeviceSample for u8

Source§

fn from_mix(sample: i16) -> Self

Source§

impl DeviceSample for u16

Source§

fn from_mix(sample: i16) -> Self

Implementors§