Struct midi_file::core::MonoModeChannels
source · pub struct MonoModeChannels(/* private fields */);
Expand description
Represents the number of channels in mono mode. The minimum value is 0
, the maximum value
is 127
(i.e. u7
). This type will clamp values to the valid range.
Implementations§
Trait Implementations§
source§impl Clone for MonoModeChannels
impl Clone for MonoModeChannels
source§fn clone(&self) -> MonoModeChannels
fn clone(&self) -> MonoModeChannels
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 MonoModeChannels
impl Debug for MonoModeChannels
source§impl Default for MonoModeChannels
impl Default for MonoModeChannels
source§impl Display for MonoModeChannels
impl Display for MonoModeChannels
source§impl From<MonoModeChannels> for u8
impl From<MonoModeChannels> for u8
source§fn from(value: MonoModeChannels) -> u8
fn from(value: MonoModeChannels) -> u8
Converts to this type from the input type.
source§impl From<u8> for MonoModeChannels
impl From<u8> for MonoModeChannels
source§impl Hash for MonoModeChannels
impl Hash for MonoModeChannels
source§impl Ord for MonoModeChannels
impl Ord for MonoModeChannels
source§fn cmp(&self, other: &MonoModeChannels) -> Ordering
fn cmp(&self, other: &MonoModeChannels) -> 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 MonoModeChannels
impl PartialEq for MonoModeChannels
source§fn eq(&self, other: &MonoModeChannels) -> bool
fn eq(&self, other: &MonoModeChannels) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MonoModeChannels
impl PartialOrd for MonoModeChannels
source§fn partial_cmp(&self, other: &MonoModeChannels) -> Option<Ordering>
fn partial_cmp(&self, other: &MonoModeChannels) -> 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 moreimpl Copy for MonoModeChannels
impl Eq for MonoModeChannels
impl StructuralEq for MonoModeChannels
impl StructuralPartialEq for MonoModeChannels
Auto Trait Implementations§
impl RefUnwindSafe for MonoModeChannels
impl Send for MonoModeChannels
impl Sync for MonoModeChannels
impl Unpin for MonoModeChannels
impl UnwindSafe for MonoModeChannels
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