PAT

Struct PAT 

Source
pub struct PAT<'buf> { /* private fields */ }
Expand description

ISO/IEC 13818-1

Program association Table

Implementations§

Source§

impl<'buf> PAT<'buf>

Source

pub fn new(buf: &'buf [u8]) -> PAT<'buf>

Source

pub fn try_new(buf: &'buf [u8]) -> Result<PAT<'buf>>

Source

pub fn validate(&self) -> Result<()>

Source

pub fn programs(&self) -> Cursor<'buf, Program<'_>>

Source

pub fn first_program_map_pid(&self) -> Option<u16>

Source

pub fn transport_stream_id(&self) -> u16

Trait Implementations§

Source§

impl<'buf> Bufer<'buf> for PAT<'buf>

Source§

fn buf(&self) -> &'buf [u8]

borrow a reference to the underlying buffer
Source§

impl<'buf> Debug for PAT<'buf>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'buf> WithHeader<'buf> for PAT<'buf>

Source§

fn b(&self) -> &'buf [u8]

buffer seeked
Source§

fn table_id(&self) -> TableID

Source§

fn section_syntax_indicator(&self) -> bool

if set to 1 (true) - 4th and 5th bytes are table-id-extension Read more
Source§

fn section_length(&self) -> u16

Source§

fn sz(&self) -> usize

complete section length
Source§

impl<'buf> WithSyntaxSection<'buf> for PAT<'buf>

Source§

fn b(&self) -> &'buf [u8]

buffer seeked
Source§

fn version_number(&self) -> u8

Source§

fn current_next_indicator(&self) -> bool

Source§

fn section_number(&self) -> u8

Source§

fn last_section_number(&self) -> u8

Auto Trait Implementations§

§

impl<'buf> Freeze for PAT<'buf>

§

impl<'buf> RefUnwindSafe for PAT<'buf>

§

impl<'buf> Send for PAT<'buf>

§

impl<'buf> Sync for PAT<'buf>

§

impl<'buf> Unpin for PAT<'buf>

§

impl<'buf> UnwindSafe for PAT<'buf>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.