Skip to main content

Sample

Trait Sample 

Source
pub trait Sample {
    // Required method
    fn to_i16(&self) -> i16;
}

Required Methods§

Source

fn to_i16(&self) -> i16

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Sample for f32

Source§

fn to_i16(&self) -> i16

Source§

impl Sample for f64

Source§

fn to_i16(&self) -> i16

Source§

impl Sample for i16

Source§

fn to_i16(&self) -> i16

Implementors§