Struct midi_file::file::TimeSignatureValue
source · pub struct TimeSignatureValue { /* private fields */ }
Implementations§
source§impl TimeSignatureValue
impl TimeSignatureValue
sourcepub fn new(
numerator: u8,
denominator: DurationName,
click: Clocks
) -> Result<Self>
pub fn new( numerator: u8, denominator: DurationName, click: Clocks ) -> Result<Self>
Create a new TimeSignatureValue
object.
sourcepub fn denominator(&self) -> DurationName
pub fn denominator(&self) -> DurationName
A getter for the denominator
field.
Trait Implementations§
source§impl Clone for TimeSignatureValue
impl Clone for TimeSignatureValue
source§fn clone(&self) -> TimeSignatureValue
fn clone(&self) -> TimeSignatureValue
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 TimeSignatureValue
impl Debug for TimeSignatureValue
source§impl Default for TimeSignatureValue
impl Default for TimeSignatureValue
source§fn default() -> TimeSignatureValue
fn default() -> TimeSignatureValue
Returns the “default value” for a type. Read more
source§impl Hash for TimeSignatureValue
impl Hash for TimeSignatureValue
source§impl Ord for TimeSignatureValue
impl Ord for TimeSignatureValue
source§fn cmp(&self, other: &TimeSignatureValue) -> Ordering
fn cmp(&self, other: &TimeSignatureValue) -> 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 TimeSignatureValue
impl PartialEq for TimeSignatureValue
source§fn eq(&self, other: &TimeSignatureValue) -> bool
fn eq(&self, other: &TimeSignatureValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TimeSignatureValue
impl PartialOrd for TimeSignatureValue
source§fn partial_cmp(&self, other: &TimeSignatureValue) -> Option<Ordering>
fn partial_cmp(&self, other: &TimeSignatureValue) -> 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 TimeSignatureValue
impl Eq for TimeSignatureValue
impl StructuralEq for TimeSignatureValue
impl StructuralPartialEq for TimeSignatureValue
Auto Trait Implementations§
impl RefUnwindSafe for TimeSignatureValue
impl Send for TimeSignatureValue
impl Sync for TimeSignatureValue
impl Unpin for TimeSignatureValue
impl UnwindSafe for TimeSignatureValue
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