pub struct MacosTimestamp {
pub value: i64,
pub timescale: i32,
pub flags: u32,
pub epoch: i64,
}Available on crate feature
std and macOS only.Expand description
A presentation timestamp mirroring Core Media’s CMTime.
Preserves the full precision and semantics of the underlying CMTime,
including flags and epoch. For a quick seconds value, use
as_secs_f64().
Fields§
§value: i64The numerator of the time value (ticks).
timescale: i32Ticks per second.
flags: u32CMTime flags (valid, has been rounded, positive/negative infinity, indefinite).
epoch: i64Distinguishes separate timelines that may restart from zero.
Trait Implementations§
Source§impl Clone for MacosTimestamp
impl Clone for MacosTimestamp
Source§fn clone(&self) -> MacosTimestamp
fn clone(&self) -> MacosTimestamp
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 MacosTimestamp
impl Debug for MacosTimestamp
Source§impl Hash for MacosTimestamp
impl Hash for MacosTimestamp
Source§impl PartialEq for MacosTimestamp
impl PartialEq for MacosTimestamp
Source§impl Timestamp for MacosTimestamp
impl Timestamp for MacosTimestamp
Source§fn as_secs_f64(&self) -> f64
fn as_secs_f64(&self) -> f64
Seconds since an unspecified epoch (lossy convenience).
impl Copy for MacosTimestamp
impl Eq for MacosTimestamp
impl StructuralPartialEq for MacosTimestamp
Auto Trait Implementations§
impl Freeze for MacosTimestamp
impl RefUnwindSafe for MacosTimestamp
impl Send for MacosTimestamp
impl Sync for MacosTimestamp
impl Unpin for MacosTimestamp
impl UnwindSafe for MacosTimestamp
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