Struct time_calc::time_sig::TimeSig
[−]
[src]
pub struct TimeSig { pub top: Top, pub bottom: Bottom, }
Represents a musical time signature.
Fields
top: Top
bottom: Bottom
Methods
impl TimeSig
[src]
fn beats_in_a_bar(&self) -> f64
Return how many beats there are in a bar under this time signature.
Trait Implementations
impl Debug for TimeSig
[src]
impl Copy for TimeSig
[src]
impl Clone for TimeSig
[src]
fn clone(&self) -> TimeSig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for TimeSig
[src]
fn eq(&self, __arg_0: &TimeSig) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TimeSig) -> bool
This method tests for !=
.
impl Eq for TimeSig
[src]
impl Hash for TimeSig
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the state provided.