pub struct MidiMessage {
pub status: u8,
pub data1: u8,
pub data2: u8,
pub data3: u8,
}Expand description
Represents a Midi message.
Fields§
§status: u8§data1: u8§data2: u8§data3: u8Trait Implementations§
Source§impl Clone for MidiMessage
impl Clone for MidiMessage
Source§fn clone(&self) -> MidiMessage
fn clone(&self) -> MidiMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MidiMessage
impl Debug for MidiMessage
Source§impl Display for MidiMessage
impl Display for MidiMessage
Source§impl From<MidiMessage> for MidiEvent
impl From<MidiMessage> for MidiEvent
Source§fn from(msg: MidiMessage) -> Self
fn from(msg: MidiMessage) -> Self
Converts to this type from the input type.
Source§impl From<u32> for MidiMessage
Converts a PmMessage to a MidiMessage. This can be used for c_intas well asi32` because these are only type aliases.
impl From<u32> for MidiMessage
Converts a PmMessage to a MidiMessage. This can be used for c_intas well asi32` because these are only type aliases.
Source§impl Into<u32> for MidiMessage
impl Into<u32> for MidiMessage
Source§impl PartialEq for MidiMessage
impl PartialEq for MidiMessage
Source§fn eq(&self, other: &MidiMessage) -> bool
fn eq(&self, other: &MidiMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MidiMessage
impl Eq for MidiMessage
impl StructuralPartialEq for MidiMessage
Auto Trait Implementations§
impl Freeze for MidiMessage
impl RefUnwindSafe for MidiMessage
impl Send for MidiMessage
impl Sync for MidiMessage
impl Unpin for MidiMessage
impl UnsafeUnpin for MidiMessage
impl UnwindSafe for MidiMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more