pub struct TimestampMs(pub u64);Expand description
A timestamp in milliseconds since the start of a stream.
u64 gives roughly 584 million years of headroom — long enough.
§Example
use audiofp::TimestampMs;
let t = TimestampMs(1_500);
assert_eq!(t.0, 1_500);Tuple Fields§
§0: u64Trait Implementations§
Source§impl Clone for TimestampMs
impl Clone for TimestampMs
Source§fn clone(&self) -> TimestampMs
fn clone(&self) -> TimestampMs
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 TimestampMs
impl Debug for TimestampMs
Source§impl Hash for TimestampMs
impl Hash for TimestampMs
Source§impl Ord for TimestampMs
impl Ord for TimestampMs
Source§fn cmp(&self, other: &TimestampMs) -> Ordering
fn cmp(&self, other: &TimestampMs) -> 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 TimestampMs
impl PartialEq for TimestampMs
Source§impl PartialOrd for TimestampMs
impl PartialOrd for TimestampMs
impl Copy for TimestampMs
impl Eq for TimestampMs
impl StructuralPartialEq for TimestampMs
Auto Trait Implementations§
impl Freeze for TimestampMs
impl RefUnwindSafe for TimestampMs
impl Send for TimestampMs
impl Sync for TimestampMs
impl Unpin for TimestampMs
impl UnsafeUnpin for TimestampMs
impl UnwindSafe for TimestampMs
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