#[repr(u8)]pub enum Channel {
Show 16 variants
Ch1 = 0,
Ch2 = 1,
Ch3 = 2,
Ch4 = 3,
Ch5 = 4,
Ch6 = 5,
Ch7 = 6,
Ch8 = 7,
Ch9 = 8,
Ch10 = 9,
Ch11 = 10,
Ch12 = 11,
Ch13 = 12,
Ch14 = 13,
Ch15 = 14,
Ch16 = 15,
}
Expand description
The MIDI channel, 1-16. Used by MidiMsg
and elsewhere.
Variants§
Ch1 = 0
Ch2 = 1
Ch3 = 2
Ch4 = 3
Ch5 = 4
Ch6 = 5
Ch7 = 6
Ch8 = 7
Ch9 = 8
Ch10 = 9
Ch11 = 10
Ch12 = 11
Ch13 = 12
Ch14 = 13
Ch15 = 14
Ch16 = 15
Implementations§
Trait Implementations§
source§impl IntoEnumIterator for Channel
impl IntoEnumIterator for Channel
type Iterator = ChannelIter
fn iter() -> ChannelIter ⓘ
source§impl PartialEq for Channel
impl PartialEq for Channel
impl Copy for Channel
impl Eq for Channel
impl StructuralPartialEq for Channel
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
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