Struct mpeg2ts_reader::pes::Timestamp [−][src]
pub struct Timestamp { /* fields omitted */ }A 33-bit Elementary Stream timestamp, used to represent PTS and DTS values which may appear in an Elementy Stream header.
Methods
impl Timestamp[src]
impl Timestamppub fn from_pts_bytes(buf: &[u8]) -> Result<Timestamp, TimestampError>[src]
pub fn from_pts_bytes(buf: &[u8]) -> Result<Timestamp, TimestampError>pub fn from_dts_bytes(buf: &[u8]) -> Result<Timestamp, TimestampError>[src]
pub fn from_dts_bytes(buf: &[u8]) -> Result<Timestamp, TimestampError>pub fn from_bytes(buf: &[u8]) -> Result<Timestamp, TimestampError>[src]
pub fn from_bytes(buf: &[u8]) -> Result<Timestamp, TimestampError>pub fn from_u64(val: u64) -> Timestamp[src]
pub fn from_u64(val: u64) -> TimestampPanics if the given val is greater than 2^33-1
pub fn value(&self) -> u64[src]
pub fn value(&self) -> u64Trait Implementations
impl PartialEq for Timestamp[src]
impl PartialEq for Timestampfn eq(&self, other: &Timestamp) -> bool[src]
fn eq(&self, other: &Timestamp) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Timestamp) -> bool[src]
fn ne(&self, other: &Timestamp) -> boolThis method tests for !=.
impl Debug for Timestamp[src]
impl Debug for Timestampfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Timestamp[src]
impl Clone for Timestampfn clone(&self) -> Timestamp[src]
fn clone(&self) -> TimestampReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for Timestamp[src]
impl Copy for Timestamp