Struct xml5ever::tokenizer::XmlTokenizer
source · pub struct XmlTokenizer<Sink> {
pub sink: Sink,
/* private fields */
}
Expand description
The Xml tokenizer.
Fields§
§sink: Sink
Destination for tokens we emit.
Implementations§
source§impl<Sink: TokenSink> XmlTokenizer<Sink>
impl<Sink: TokenSink> XmlTokenizer<Sink>
sourcepub fn new(sink: Sink, opts: XmlTokenizerOpts) -> XmlTokenizer<Sink>
pub fn new(sink: Sink, opts: XmlTokenizerOpts) -> XmlTokenizer<Sink>
Create a new tokenizer which feeds tokens to a particular TokenSink
.
sourcepub fn feed(&mut self, input: &mut BufferQueue)
pub fn feed(&mut self, input: &mut BufferQueue)
Feed an input string into the tokenizer.
sourcepub fn run(&mut self, input: &mut BufferQueue)
pub fn run(&mut self, input: &mut BufferQueue)
Run the state machine for as long as we can.
Auto Trait Implementations§
impl<Sink> !Freeze for XmlTokenizer<Sink>
impl<Sink> !RefUnwindSafe for XmlTokenizer<Sink>
impl<Sink> !Send for XmlTokenizer<Sink>
impl<Sink> !Sync for XmlTokenizer<Sink>
impl<Sink> Unpin for XmlTokenizer<Sink>where
Sink: Unpin,
impl<Sink> UnwindSafe for XmlTokenizer<Sink>where
Sink: UnwindSafe,
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