pub struct NoteOccurrence {
pub lane: LaneId,
pub cell_index: usize,
}Expand description
Stable identity of one note occurrence inside a piano-roll lane.
Equal pitches remain distinct because identity is the lane plus cell index, not a pitch or pitch-class mask.
Fields§
§lane: LaneIdLane containing the note cell.
cell_index: usizeStable index within that lane’s canonical cell order.
Trait Implementations§
Source§impl Clone for NoteOccurrence
impl Clone for NoteOccurrence
Source§fn clone(&self) -> NoteOccurrence
fn clone(&self) -> NoteOccurrence
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 NoteOccurrence
impl Debug for NoteOccurrence
impl Eq for NoteOccurrence
Source§impl Hash for NoteOccurrence
impl Hash for NoteOccurrence
Source§impl Ord for NoteOccurrence
impl Ord for NoteOccurrence
Source§fn cmp(&self, other: &NoteOccurrence) -> Ordering
fn cmp(&self, other: &NoteOccurrence) -> 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 NoteOccurrence
impl PartialEq for NoteOccurrence
Source§impl PartialOrd for NoteOccurrence
impl PartialOrd for NoteOccurrence
impl StructuralPartialEq for NoteOccurrence
Auto Trait Implementations§
impl Freeze for NoteOccurrence
impl RefUnwindSafe for NoteOccurrence
impl Send for NoteOccurrence
impl Sync for NoteOccurrence
impl Unpin for NoteOccurrence
impl UnsafeUnpin for NoteOccurrence
impl UnwindSafe for NoteOccurrence
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