Struct midi_file::core::NoteMessage
source · pub struct NoteMessage { /* private fields */ }
Expand description
Represents the data that is common, and required for both Message::NoteOn
and
Message::NoteOff
messages.
Implementations§
source§impl NoteMessage
impl NoteMessage
sourcepub fn note_number(&self) -> NoteNumber
pub fn note_number(&self) -> NoteNumber
Getter for the note_number
field.
Trait Implementations§
source§impl Clone for NoteMessage
impl Clone for NoteMessage
source§fn clone(&self) -> NoteMessage
fn clone(&self) -> NoteMessage
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 NoteMessage
impl Debug for NoteMessage
source§impl Default for NoteMessage
impl Default for NoteMessage
source§fn default() -> NoteMessage
fn default() -> NoteMessage
Returns the “default value” for a type. Read more
source§impl Hash for NoteMessage
impl Hash for NoteMessage
source§impl Ord for NoteMessage
impl Ord for NoteMessage
source§fn cmp(&self, other: &NoteMessage) -> Ordering
fn cmp(&self, other: &NoteMessage) -> 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 NoteMessage
impl PartialEq for NoteMessage
source§fn eq(&self, other: &NoteMessage) -> bool
fn eq(&self, other: &NoteMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NoteMessage
impl PartialOrd for NoteMessage
source§fn partial_cmp(&self, other: &NoteMessage) -> Option<Ordering>
fn partial_cmp(&self, other: &NoteMessage) -> 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 Copy for NoteMessage
impl Eq for NoteMessage
impl StructuralEq for NoteMessage
impl StructuralPartialEq for NoteMessage
Auto Trait Implementations§
impl RefUnwindSafe for NoteMessage
impl Send for NoteMessage
impl Sync for NoteMessage
impl Unpin for NoteMessage
impl UnwindSafe for NoteMessage
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