pub struct BarBeatTick {
pub bar: u64,
pub beat: u32,
pub tick: u32,
}Expand description
A musical position as (bar, beat, tick), all 0-indexed.
Fields§
§bar: u64Bar index from the start of the timeline (0 = first bar).
beat: u32Beat within the bar (0 = downbeat), 0 ..= numerator-1.
tick: u32Tick within the beat, 0 ..= ticks_per_beat-1.
Trait Implementations§
Source§impl Clone for BarBeatTick
impl Clone for BarBeatTick
impl Copy for BarBeatTick
Source§impl Debug for BarBeatTick
impl Debug for BarBeatTick
impl Eq for BarBeatTick
Source§impl PartialEq for BarBeatTick
impl PartialEq for BarBeatTick
impl StructuralPartialEq for BarBeatTick
Auto Trait Implementations§
impl Freeze for BarBeatTick
impl RefUnwindSafe for BarBeatTick
impl Send for BarBeatTick
impl Sync for BarBeatTick
impl Unpin for BarBeatTick
impl UnsafeUnpin for BarBeatTick
impl UnwindSafe for BarBeatTick
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