Struct midi_file::file::QuarterNoteDivision
source · pub struct QuarterNoteDivision(/* private fields */);
Expand description
The allowable values for Division
when using the quarter note method. It is a positive
u14
and thus has the range 1 to 16,383. The default value is 1024.
Implementations§
Trait Implementations§
source§impl Clone for QuarterNoteDivision
impl Clone for QuarterNoteDivision
source§fn clone(&self) -> QuarterNoteDivision
fn clone(&self) -> QuarterNoteDivision
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 QuarterNoteDivision
impl Debug for QuarterNoteDivision
source§impl Default for QuarterNoteDivision
impl Default for QuarterNoteDivision
source§impl Display for QuarterNoteDivision
impl Display for QuarterNoteDivision
source§impl From<QuarterNoteDivision> for u16
impl From<QuarterNoteDivision> for u16
source§fn from(value: QuarterNoteDivision) -> u16
fn from(value: QuarterNoteDivision) -> u16
Converts to this type from the input type.
source§impl From<u16> for QuarterNoteDivision
impl From<u16> for QuarterNoteDivision
source§impl Hash for QuarterNoteDivision
impl Hash for QuarterNoteDivision
source§impl Ord for QuarterNoteDivision
impl Ord for QuarterNoteDivision
source§fn cmp(&self, other: &QuarterNoteDivision) -> Ordering
fn cmp(&self, other: &QuarterNoteDivision) -> 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 QuarterNoteDivision
impl PartialEq for QuarterNoteDivision
source§impl PartialOrd for QuarterNoteDivision
impl PartialOrd for QuarterNoteDivision
impl Copy for QuarterNoteDivision
impl Eq for QuarterNoteDivision
impl StructuralPartialEq for QuarterNoteDivision
Auto Trait Implementations§
impl Freeze for QuarterNoteDivision
impl RefUnwindSafe for QuarterNoteDivision
impl Send for QuarterNoteDivision
impl Sync for QuarterNoteDivision
impl Unpin for QuarterNoteDivision
impl UnwindSafe for QuarterNoteDivision
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
)