pub struct TimeSignature {
pub numerator: NonZeroU32,
}Expand description
The time signature of a track.
Fields§
§numerator: NonZeroU32Implementations§
Source§impl TimeSignature
impl TimeSignature
Sourcepub fn new(numerator: i32) -> Result<Self, TimeSignatureError>
pub fn new(numerator: i32) -> Result<Self, TimeSignatureError>
pub const fn new_simple_triple() -> Self
pub const fn new_simple_quadruple() -> Self
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 · 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 PartialEq for TimeSignature
impl PartialEq for TimeSignature
Source§impl TryFrom<i32> for TimeSignature
impl TryFrom<i32> 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 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