Struct mpeg2ts_reader::psi::pat::PatSection
source · pub struct PatSection<'buf> { /* private fields */ }Expand description
Sections of the Program Association Table give details of the programs within a transport stream. There may be only one program, or in the case of a broadcast multiplex, there may be many.
Implementations§
source§impl<'buf> PatSection<'buf>
impl<'buf> PatSection<'buf>
sourcepub fn new(data: &'buf [u8]) -> PatSection<'buf>
pub fn new(data: &'buf [u8]) -> PatSection<'buf>
Create a PatSection, wrapping the given slice, whose methods can parse the section’s
fields
sourcepub fn programs(&self) -> impl Iterator<Item = ProgramDescriptor> + 'buf
pub fn programs(&self) -> impl Iterator<Item = ProgramDescriptor> + 'buf
Returns an iterator over the entries in this program association table section.
Trait Implementations§
source§impl<'buf> Clone for PatSection<'buf>
impl<'buf> Clone for PatSection<'buf>
source§fn clone(&self) -> PatSection<'buf>
fn clone(&self) -> PatSection<'buf>
Returns a copy 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 moreAuto Trait Implementations§
impl<'buf> RefUnwindSafe for PatSection<'buf>
impl<'buf> Send for PatSection<'buf>
impl<'buf> Sync for PatSection<'buf>
impl<'buf> Unpin for PatSection<'buf>
impl<'buf> UnwindSafe for PatSection<'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