Struct TimeSignature
pub struct TimeSignature { /* private fields */ }Implementations§
§impl TimeSignature
impl TimeSignature
pub fn new( numerator: u16, denominator: u16, ) -> Result<TimeSignature, 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§
§impl Clone for TimeSignature
impl Clone for TimeSignature
§fn clone(&self) -> TimeSignature
fn clone(&self) -> TimeSignature
Returns a duplicate 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 more§impl Debug for TimeSignature
impl Debug for TimeSignature
§impl Hash for TimeSignature
impl Hash for TimeSignature
§impl PartialEq for TimeSignature
impl PartialEq for TimeSignature
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