Write

Trait Write 

Source
pub trait Write<Output: AsMut<[u8]> + ?Sized> {
    // Required method
    fn write(self, buffer: &mut Output) -> Option<&[u8]>;
}

Required Methods§

Source

fn write(self, buffer: &mut Output) -> Option<&[u8]>

If there is enough space, write to the Output and return the slice written to. Buffer contents can be anything if None is returned, and can be anything outside the slice.

Implementors§

Source§

impl Write<[u8]> for Event<'_>

Source§

impl Write<[u8]> for MidiEvent