pub struct PMT<'buf> { /* private fields */ }Expand description
ISO/IEC 13818-1
Program Map Table
Implementations§
Source§impl<'buf> PMT<'buf>
impl<'buf> PMT<'buf>
pub fn new(buf: &'buf [u8]) -> PMT<'buf>
pub fn try_new(buf: &'buf [u8]) -> Result<PMT<'buf>>
pub fn validate(&self) -> Result<()>
pub fn descriptors(&self) -> Option<Cursor<'buf, Descriptor<'_>>>
pub fn streams(&self) -> Cursor<'buf, Stream<'_>>
pub fn program_number(&self) -> u16
Trait Implementations§
Source§impl<'buf> WithHeader<'buf> for PMT<'buf>
impl<'buf> WithHeader<'buf> for PMT<'buf>
Source§impl<'buf> WithSyntaxSection<'buf> for PMT<'buf>
impl<'buf> WithSyntaxSection<'buf> for PMT<'buf>
Auto Trait Implementations§
impl<'buf> Freeze for PMT<'buf>
impl<'buf> RefUnwindSafe for PMT<'buf>
impl<'buf> Send for PMT<'buf>
impl<'buf> Sync for PMT<'buf>
impl<'buf> Unpin for PMT<'buf>
impl<'buf> UnwindSafe for PMT<'buf>
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