pub struct PerformanceNoteKey {
pub channel: u8,
pub semitone: i32,
}Expand description
Identity key for a held note, combining channel and pitch.
Used to track note-on/note-off pairing in source and clip state.
Fields§
§channel: u8Raw channel number.
semitone: i32Pitch in semitones.
Implementations§
Trait Implementations§
Source§impl Clone for PerformanceNoteKey
impl Clone for PerformanceNoteKey
Source§fn clone(&self) -> PerformanceNoteKey
fn clone(&self) -> PerformanceNoteKey
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 moreimpl Copy for PerformanceNoteKey
Source§impl Debug for PerformanceNoteKey
impl Debug for PerformanceNoteKey
impl Eq for PerformanceNoteKey
Source§impl Hash for PerformanceNoteKey
impl Hash for PerformanceNoteKey
Source§impl Ord for PerformanceNoteKey
impl Ord for PerformanceNoteKey
Source§fn cmp(&self, other: &PerformanceNoteKey) -> Ordering
fn cmp(&self, other: &PerformanceNoteKey) -> Ordering
1.21.0 (const: unstable) · 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 PerformanceNoteKey
impl PartialEq for PerformanceNoteKey
Source§impl PartialOrd for PerformanceNoteKey
impl PartialOrd for PerformanceNoteKey
impl StructuralPartialEq for PerformanceNoteKey
Auto Trait Implementations§
impl Freeze for PerformanceNoteKey
impl RefUnwindSafe for PerformanceNoteKey
impl Send for PerformanceNoteKey
impl Sync for PerformanceNoteKey
impl Unpin for PerformanceNoteKey
impl UnsafeUnpin for PerformanceNoteKey
impl UnwindSafe for PerformanceNoteKey
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