Trait ParserInput

Source
pub trait ParserInput: Iterator<Item = TokenAndSpan> {
    // Required methods
    fn start_pos(&mut self) -> BytePos;
    fn last_pos(&mut self) -> BytePos;
    fn take_errors(&mut self) -> Vec<Error>;
    fn set_last_start_tag_name(&mut self, tag_name: &Atom);
    fn set_input_state(&mut self, state: State);
    fn set_adjusted_current_node_to_html_namespace(&mut self, value: bool);
}

Required Methods§

Source

fn start_pos(&mut self) -> BytePos

Source

fn last_pos(&mut self) -> BytePos

Source

fn take_errors(&mut self) -> Vec<Error>

Source

fn set_last_start_tag_name(&mut self, tag_name: &Atom)

Source

fn set_input_state(&mut self, state: State)

Source

fn set_adjusted_current_node_to_html_namespace(&mut self, value: bool)

Implementors§

Source§

impl<'a, I> ParserInput for Lexer<'a, I>
where I: Input<'a>,