Trait MIDIEventEnum

Source
pub trait MIDIEventEnum: MIDIEvent {
    // Required methods
    fn as_event(&self) -> &Event;
    fn as_event_mut(&mut self) -> &mut Event;
}

Required Methods§

Source

fn as_event(&self) -> &Event

Source

fn as_event_mut(&mut self) -> &mut Event

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.

Implementors§