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 Eq for TimeSig
[src]

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 Decodable for TimeSig
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<TimeSig, __D::Error>

impl Encodable for TimeSig
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

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 Copy for TimeSig
[src]

impl Debug for TimeSig
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.