pub enum MidiChannel {
Channel(usize),
Auto,
Off,
}
Expand description
An enum which represents a midi channel in the global menu.
It can be either a specific channel, the auto channel or off.
Variants§
Trait Implementations§
source§impl Clone for MidiChannel
impl Clone for MidiChannel
source§fn clone(&self) -> MidiChannel
fn clone(&self) -> MidiChannel
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 MidiChannel
impl Debug for MidiChannel
source§impl Default for MidiChannel
impl Default for MidiChannel
source§fn default() -> MidiChannel
fn default() -> MidiChannel
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MidiChannel
impl<'de> Deserialize<'de> for MidiChannel
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<MidiChannel> for &str
impl From<MidiChannel> for &str
source§fn from(mc: MidiChannel) -> Self
fn from(mc: MidiChannel) -> Self
Converts to this type from the input type.
source§impl Hash for MidiChannel
impl Hash for MidiChannel
source§impl Ord for MidiChannel
impl Ord for MidiChannel
source§fn cmp(&self, other: &MidiChannel) -> Ordering
fn cmp(&self, other: &MidiChannel) -> 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 MidiChannel
impl PartialEq for MidiChannel
source§fn eq(&self, other: &MidiChannel) -> bool
fn eq(&self, other: &MidiChannel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MidiChannel
impl PartialOrd for MidiChannel
source§fn partial_cmp(&self, other: &MidiChannel) -> Option<Ordering>
fn partial_cmp(&self, other: &MidiChannel) -> 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 moresource§impl Serialize for MidiChannel
impl Serialize for MidiChannel
source§impl TryFrom<&str> for MidiChannel
impl TryFrom<&str> for MidiChannel
source§impl TryInto<u8> for MidiChannel
impl TryInto<u8> for MidiChannel
impl Copy for MidiChannel
impl Eq for MidiChannel
impl StructuralEq for MidiChannel
impl StructuralPartialEq for MidiChannel
Auto Trait Implementations§
impl RefUnwindSafe for MidiChannel
impl Send for MidiChannel
impl Sync for MidiChannel
impl Unpin for MidiChannel
impl UnwindSafe for MidiChannel
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