Struct mpeg2ts_reader::psi::BufferCompactSyntaxParser[][src]

pub struct BufferCompactSyntaxParser<P> where
    P: WholeCompactSyntaxPayloadParser
{ /* fields omitted */ }

Implements CompactSyntaxPayloadParser so that any sections that cross TS-packet boundaries are collected into a single byte-buffer for easier parsing. In the common case that the section fits entirely in a single TS packet, the implementation is zero-copy.

Implementations

impl<P> BufferCompactSyntaxParser<P> where
    P: WholeCompactSyntaxPayloadParser
[src]

pub fn new(parser: P) -> BufferCompactSyntaxParser<P>[src]

wraps the given WholeSectionSyntaxPayloadParser instance in a new BufferSectionSyntaxParser.

Trait Implementations

impl<P> CompactSyntaxPayloadParser for BufferCompactSyntaxParser<P> where
    P: WholeCompactSyntaxPayloadParser
[src]

type Context = P::Context

The type of the context object passed to all methods

Auto Trait Implementations

impl<P> RefUnwindSafe for BufferCompactSyntaxParser<P> where
    P: RefUnwindSafe

impl<P> Send for BufferCompactSyntaxParser<P> where
    P: Send

impl<P> Sync for BufferCompactSyntaxParser<P> where
    P: Sync

impl<P> Unpin for BufferCompactSyntaxParser<P> where
    P: Unpin

impl<P> UnwindSafe for BufferCompactSyntaxParser<P> where
    P: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.