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§impl PartialOrd for MonoModeChannels
impl PartialOrd for MonoModeChannels
impl Copy for MonoModeChannels
impl Eq for MonoModeChannels
impl StructuralPartialEq for MonoModeChannels
Auto Trait Implementations§
impl Freeze for MonoModeChannels
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)