Struct augmented_midi::MIDIMessageNote
source · pub struct MIDIMessageNote {
pub channel: u8,
pub note: u8,
pub velocity: u8,
}
Expand description
Type of node-on or note-off contents
Fields§
§channel: u8
§note: u8
§velocity: u8
Trait Implementations§
source§impl Clone for MIDIMessageNote
impl Clone for MIDIMessageNote
source§fn clone(&self) -> MIDIMessageNote
fn clone(&self) -> MIDIMessageNote
Returns a copy of the value. Read more
1.0.0 · 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 MIDIMessageNote
impl Debug for MIDIMessageNote
source§impl Ord for MIDIMessageNote
impl Ord for MIDIMessageNote
source§fn cmp(&self, other: &MIDIMessageNote) -> Ordering
fn cmp(&self, other: &MIDIMessageNote) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for MIDIMessageNote
impl PartialEq for MIDIMessageNote
source§fn eq(&self, other: &MIDIMessageNote) -> bool
fn eq(&self, other: &MIDIMessageNote) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MIDIMessageNote
impl PartialOrd for MIDIMessageNote
source§fn partial_cmp(&self, other: &MIDIMessageNote) -> Option<Ordering>
fn partial_cmp(&self, other: &MIDIMessageNote) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for MIDIMessageNote
impl StructuralEq for MIDIMessageNote
impl StructuralPartialEq for MIDIMessageNote
Auto Trait Implementations§
impl RefUnwindSafe for MIDIMessageNote
impl Send for MIDIMessageNote
impl Sync for MIDIMessageNote
impl Unpin for MIDIMessageNote
impl UnwindSafe for MIDIMessageNote
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