Trait midi2::buffer::Unit

source ·
pub trait Unit: Copy + UnitPrivate {
    // Required method
    fn zero() -> Self;
}
Expand description

The generic unit type contained within Buffer slices.

This is a sealed trait. It’s only implemented for u8 and u32.

A Buffer with U = u8 is a Bytes buffer.

A Buffer with U = u32 is a Ump buffer.

Required Methods§

source

fn zero() -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Unit for u8

source§

fn zero() -> Self

source§

impl Unit for u32

source§

fn zero() -> Self

Implementors§