pub struct Dts(pub u64);Expand description
Decoding Time Stamp (33-bit, 90 kHz units).
Tuple Fields§
§0: u64Implementations§
Source§impl Dts
impl Dts
Sourcepub fn to_field_bytes(self) -> [u8; 5]
pub fn to_field_bytes(self) -> [u8; 5]
Encode as a 5-byte DTS field (prefix 0001, the DTS half of a PTS+DTS pair).
Sourcepub fn from_field_bytes(b: &[u8; 5]) -> Result<Self>
pub fn from_field_bytes(b: &[u8; 5]) -> Result<Self>
Decode from a 5-byte DTS field (prefix 0001).
Exact inverse of to_field_bytes.
Trait Implementations§
impl Copy for Dts
impl Eq for Dts
Source§impl Ord for Dts
impl Ord for Dts
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 PartialOrd for Dts
impl PartialOrd for Dts
impl StructuralPartialEq for Dts
Auto Trait Implementations§
impl Freeze for Dts
impl RefUnwindSafe for Dts
impl Send for Dts
impl Sync for Dts
impl Unpin for Dts
impl UnsafeUnpin for Dts
impl UnwindSafe for Dts
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