pub struct TimeSignature { /* private fields */ }Implementations§
Source§impl TimeSignature
impl TimeSignature
pub fn new(numerator: u16, denominator: u16) -> Result<Self, MeterError>
pub const fn numerator(self) -> u16
pub const fn denominator(self) -> u16
pub const fn is_common_time_like(self) -> bool
pub const fn is_cut_time_like(self) -> bool
pub const fn is_compound(self) -> bool
pub const fn is_simple(self) -> bool
Trait Implementations§
Source§impl Clone for TimeSignature
impl Clone for TimeSignature
Source§fn clone(&self) -> TimeSignature
fn clone(&self) -> TimeSignature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TimeSignature
impl Debug for TimeSignature
Source§impl Hash for TimeSignature
impl Hash for TimeSignature
Source§impl PartialEq for TimeSignature
impl PartialEq for TimeSignature
Source§fn eq(&self, other: &TimeSignature) -> bool
fn eq(&self, other: &TimeSignature) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TimeSignature
impl Eq for TimeSignature
impl StructuralPartialEq for TimeSignature
Auto Trait Implementations§
impl Freeze for TimeSignature
impl RefUnwindSafe for TimeSignature
impl Send for TimeSignature
impl Sync for TimeSignature
impl Unpin for TimeSignature
impl UnsafeUnpin for TimeSignature
impl UnwindSafe for TimeSignature
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