pub struct Transport<'a> { /* private fields */ }Implementations§
Source§impl<'a> Transport<'a>
impl<'a> Transport<'a>
Sourcepub const unsafe fn new_unchecked(header: &'a Header) -> Self
pub const unsafe fn new_unchecked(header: &'a Header) -> Self
§Safety
The header must be a header of type: clap_event_transport.
pub const fn song_pos_seconds(&self) -> SecTime
pub const fn song_pos_beats(&self) -> BeatTime
pub const fn loop_start_beats(&self) -> BeatTime
pub const fn loop_end_beats(&self) -> BeatTime
pub const fn loop_start_seconds(&self) -> SecTime
pub const fn loop_end_seconds(&self) -> SecTime
pub const fn bar_start(&self) -> BeatTime
pub const fn flags(&self) -> u32
pub const fn tempo(&self) -> f64
pub const fn tempo_inc(&self) -> f64
pub const fn bar_number(&self) -> i32
pub const fn tsig_num(&self) -> u16
pub const fn tsig_denom(&self) -> u16
pub const fn build() -> TransportBuilder
pub fn update(&self) -> TransportBuilder
Trait Implementations§
impl<'a> Copy for Transport<'a>
impl<'a> StructuralPartialEq for Transport<'a>
Auto Trait Implementations§
impl<'a> Freeze for Transport<'a>
impl<'a> RefUnwindSafe for Transport<'a>
impl<'a> Send for Transport<'a>
impl<'a> Sync for Transport<'a>
impl<'a> Unpin for Transport<'a>
impl<'a> UnwindSafe for Transport<'a>
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