Struct html5ever::tokenizer::buffer_queue::BufferQueue
[−]
[src]
pub struct BufferQueue { /* fields omitted */ }
A queue of owned string buffers, which supports incrementally consuming characters.
Methods
impl BufferQueue
[src]
fn new() -> BufferQueue
Create an empty BufferQueue.
fn is_empty(&self) -> bool
Returns whether the queue is empty.
fn pop_front(&mut self) -> Option<StrTendril>
Get the tendril at the beginning of the queue.
fn push_front(&mut self, buf: StrTendril)
Add a buffer to the beginning of the queue.
fn push_back(&mut self, buf: StrTendril)
Add a buffer to the end of the queue.
fn peek(&self) -> Option<char>
Look at the next available character, if any.
fn next(&mut self) -> Option<char>
Get the next character, if one is available.
fn pop_except_from(&mut self, set: SmallCharSet) -> Option<SetResult>
Pops and returns either a single character from the given set, or
a StrTendril
of characters none of which are in the set. The set
is represented as a bitmask and so can only contain the first 64
ASCII characters.