pub trait MIDIEvent: SerializeEvent + Debug {
// Required methods
fn key(&self) -> Option<u8>;
fn key_mut(&mut self) -> Option<&mut u8>;
fn channel(&self) -> Option<u8>;
fn channel_mut(&mut self) -> Option<&mut u8>;
fn as_u32(&self) -> Option<u32>;
}
Required Methods§
fn key(&self) -> Option<u8>
fn key_mut(&mut self) -> Option<&mut u8>
fn channel(&self) -> Option<u8>
fn channel_mut(&mut self) -> Option<&mut u8>
fn as_u32(&self) -> Option<u32>
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.