pub struct ClockIndex(/* private fields */);Expand description
Position on a clock timeline, counted in that clock’s own units (frames for frame clocks, ticks for MIDI clocks).
§Examples
use sim_lib_stream_clock::ClockIndex;
let index = ClockIndex::new(48_000);
assert_eq!(index.value(), 48_000);Implementations§
Trait Implementations§
Source§impl Clone for ClockIndex
impl Clone for ClockIndex
Source§fn clone(&self) -> ClockIndex
fn clone(&self) -> ClockIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClockIndex
Source§impl Debug for ClockIndex
impl Debug for ClockIndex
impl Eq for ClockIndex
Source§impl Ord for ClockIndex
impl Ord for ClockIndex
Source§fn cmp(&self, other: &ClockIndex) -> Ordering
fn cmp(&self, other: &ClockIndex) -> Ordering
1.21.0 (const: unstable) · 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 ClockIndex
impl PartialEq for ClockIndex
Source§fn eq(&self, other: &ClockIndex) -> bool
fn eq(&self, other: &ClockIndex) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ClockIndex
impl PartialOrd for ClockIndex
impl StructuralPartialEq for ClockIndex
Auto Trait Implementations§
impl Freeze for ClockIndex
impl RefUnwindSafe for ClockIndex
impl Send for ClockIndex
impl Sync for ClockIndex
impl Unpin for ClockIndex
impl UnsafeUnpin for ClockIndex
impl UnwindSafe for ClockIndex
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