pub struct MediaTimestamp { /* private fields */ }Implementations§
Source§impl MediaTimestamp
impl MediaTimestamp
pub fn new(seconds: f64) -> Result<MediaTimestamp, MediaTimestampError>
pub fn seconds(&self) -> f64
pub fn millis(&self) -> u64
pub fn frame_index(&self, fps: f64) -> Result<u64, MediaTimestampError>
Trait Implementations§
Source§impl Clone for MediaTimestamp
impl Clone for MediaTimestamp
Source§fn clone(&self) -> MediaTimestamp
fn clone(&self) -> MediaTimestamp
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 moreSource§impl Debug for MediaTimestamp
impl Debug for MediaTimestamp
Source§impl PartialEq for MediaTimestamp
impl PartialEq for MediaTimestamp
Source§fn eq(&self, other: &MediaTimestamp) -> bool
fn eq(&self, other: &MediaTimestamp) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MediaTimestamp
impl StructuralPartialEq for MediaTimestamp
Auto Trait Implementations§
impl Freeze for MediaTimestamp
impl RefUnwindSafe for MediaTimestamp
impl Send for MediaTimestamp
impl Sync for MediaTimestamp
impl Unpin for MediaTimestamp
impl UnsafeUnpin for MediaTimestamp
impl UnwindSafe for MediaTimestamp
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