[−][src]Struct html5ever::tokenizer::Tokenizer
The HTML tokenizer.
Fields
sink: Sink
Destination for tokens we emit.
Methods
impl<Sink: TokenSink> Tokenizer<Sink>
[src]
pub fn new(sink: Sink, opts: TokenizerOpts) -> Tokenizer<Sink>
[src]
Create a new tokenizer which feeds tokens to a particular TokenSink
.
pub fn feed(&mut self, input: &mut BufferQueue) -> TokenizerResult<Sink::Handle>
[src]
Feed an input string into the tokenizer.
pub fn set_plaintext_state(&mut self)
[src]
impl<Sink: TokenSink> Tokenizer<Sink>
[src]
Auto Trait Implementations
impl<Sink> !Sync for Tokenizer<Sink>
impl<Sink> !Send for Tokenizer<Sink>
impl<Sink> Unpin for Tokenizer<Sink> where
Sink: Unpin,
Sink: Unpin,
impl<Sink> UnwindSafe for Tokenizer<Sink> where
Sink: UnwindSafe,
Sink: UnwindSafe,
impl<Sink> !RefUnwindSafe for Tokenizer<Sink>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,