Trait Writable

Source
pub trait Writable: Copy {
    // Required methods
    fn write(&self, output: &mut Vec<f32>);
    fn stride() -> usize;
}

Required Methods§

Source

fn write(&self, output: &mut Vec<f32>)

Source

fn stride() -> usize

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 Writable for (f32, f32)

Source§

fn write(&self, output: &mut Vec<f32>)

Source§

fn stride() -> usize

Source§

impl Writable for (f32, f32, f32)

Source§

fn write(&self, output: &mut Vec<f32>)

Source§

fn stride() -> usize

Source§

impl Writable for (f32, f32, f32, f32)

Source§

fn write(&self, output: &mut Vec<f32>)

Source§

fn stride() -> usize

Source§

impl Writable for f32

Source§

fn write(&self, output: &mut Vec<f32>)

Source§

fn stride() -> usize

Source§

impl Writable for [f32; 2]

Source§

fn write(&self, output: &mut Vec<f32>)

Source§

fn stride() -> usize

Source§

impl Writable for [f32; 3]

Source§

fn write(&self, output: &mut Vec<f32>)

Source§

fn stride() -> usize

Source§

impl Writable for [f32; 4]

Source§

fn write(&self, output: &mut Vec<f32>)

Source§

fn stride() -> usize

Implementors§