Skip to main content

IncrementalWebVTTParser

Struct IncrementalWebVTTParser 

Source
pub struct IncrementalWebVTTParser<Context, Sink: WebVttParserSink<Context>> {
    pub(crate) phantom: PhantomData<Context>,
    pub sink: Sink,
    pub(crate) buffer: BufferQueue,
    pub(crate) seen_cue: bool,
    pub(crate) seen_eof: bool,
    pub(crate) seen_arrow: bool,
    pub(crate) in_header: bool,
    pub(crate) line_count: u32,
    pub(crate) state: ParserState,
    pub(crate) current_line_in_block: StrTendril,
    pub(crate) current_buffer_in_block: String,
    pub(crate) current_cue_in_block: Option<WebVttCue>,
}

Fields§

§phantom: PhantomData<Context>§sink: Sink§buffer: BufferQueue§seen_cue: bool§seen_eof: bool§seen_arrow: bool§in_header: bool§line_count: u32§state: ParserState§current_line_in_block: StrTendril§current_buffer_in_block: String§current_cue_in_block: Option<WebVttCue>

Implementations§

Trait Implementations§

Source§

impl<Context: Default, Sink: Default + WebVttParserSink<Context>> Default for IncrementalWebVTTParser<Context, Sink>

Source§

fn default() -> IncrementalWebVTTParser<Context, Sink>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<Context, Sink> !Freeze for IncrementalWebVTTParser<Context, Sink>

§

impl<Context, Sink> !RefUnwindSafe for IncrementalWebVTTParser<Context, Sink>

§

impl<Context, Sink> !Send for IncrementalWebVTTParser<Context, Sink>

§

impl<Context, Sink> !Sync for IncrementalWebVTTParser<Context, Sink>

§

impl<Context, Sink> Unpin for IncrementalWebVTTParser<Context, Sink>
where Sink: Unpin, Context: Unpin,

§

impl<Context, Sink> UnsafeUnpin for IncrementalWebVTTParser<Context, Sink>
where Sink: UnsafeUnpin,

§

impl<Context, Sink> UnwindSafe for IncrementalWebVTTParser<Context, Sink>
where Sink: UnwindSafe, Context: UnwindSafe,

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.