pub struct TimeContext {
pub time_signature: TimeSignature,
pub tempo: Tempo,
}Fields§
§time_signature: TimeSignature§tempo: TempoImplementations§
Source§impl TimeContext
impl TimeContext
pub fn new<B: Into<Tempo>>(tempo: B) -> Self
pub fn with_time_signature<V: Into<TimeSignature>>( self, time_signature: V, ) -> Self
pub fn with_tempo<B: Into<Tempo>>(self, tempo: B) -> Self
Trait Implementations§
Source§impl Clone for TimeContext
impl Clone for TimeContext
Source§fn clone(&self) -> TimeContext
fn clone(&self) -> TimeContext
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 TimeContext
impl Debug for TimeContext
Source§impl Default for TimeContext
impl Default for TimeContext
Source§fn default() -> TimeContext
fn default() -> TimeContext
Returns the “default value” for a type. Read more
Source§impl Hash for TimeContext
impl Hash for TimeContext
Source§impl Mul<Beat> for TimeContext
impl Mul<Beat> for TimeContext
Source§impl Mul<Measure> for TimeContext
impl Mul<Measure> for TimeContext
Source§impl Ord for TimeContext
impl Ord for TimeContext
Source§fn cmp(&self, other: &TimeContext) -> Ordering
fn cmp(&self, other: &TimeContext) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TimeContext
impl PartialEq for TimeContext
Source§impl PartialOrd for TimeContext
impl PartialOrd for TimeContext
impl Copy for TimeContext
impl Eq for TimeContext
impl StructuralPartialEq for TimeContext
Auto Trait Implementations§
impl Freeze for TimeContext
impl RefUnwindSafe for TimeContext
impl Send for TimeContext
impl Sync for TimeContext
impl Unpin for TimeContext
impl UnwindSafe for TimeContext
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