Trait midi2::buffer::Buffer

source ·
pub trait Buffer {
    type Unit: Unit;

    // Required method
    fn buffer(&self) -> &[Self::Unit];
}
Expand description

Generic data representation for MIDI message wrapper types.

For more info see the buffer module docs.

Required Associated Types§

Required Methods§

source

fn buffer(&self) -> &[Self::Unit]

Implementations on Foreign Types§

source§

impl<'a, U: Unit> Buffer for &'a [U]

§

type Unit = U

source§

fn buffer(&self) -> &[Self::Unit]

source§

impl<'a, U: Unit> Buffer for &'a mut [U]

§

type Unit = U

source§

fn buffer(&self) -> &[Self::Unit]

source§

impl<U: Unit> Buffer for Vec<U>

§

type Unit = U

source§

fn buffer(&self) -> &[Self::Unit]

source§

impl<const SIZE: usize, U: Unit> Buffer for [U; SIZE]

§

type Unit = U

source§

fn buffer(&self) -> &[Self::Unit]

Implementors§