pub enum NoteMark<K> {
On(K),
Off(K),
Other,
}Expand description
What an event is to a note: one starting or ending, keyed by its pitch and channel, or neither.
Variants§
Trait Implementations§
impl<K: Copy> Copy for NoteMark<K>
impl<K: Eq> Eq for NoteMark<K>
impl<K: PartialEq> StructuralPartialEq for NoteMark<K>
Auto Trait Implementations§
impl<K> Forget for NoteMark<K>
impl<K> Freeze for NoteMark<K>where
K: Freeze,
impl<K> Move for NoteMark<K>
impl<K> RefUnwindSafe for NoteMark<K>where
K: RefUnwindSafe,
impl<K> Send for NoteMark<K>where
K: Send,
impl<K> Sync for NoteMark<K>where
K: Sync,
impl<K> Unpin for NoteMark<K>where
K: Unpin,
impl<K> UnsafeUnpin for NoteMark<K>where
K: UnsafeUnpin,
impl<K> UnwindSafe for NoteMark<K>where
K: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more