Trait text_parsing::parser::Parser

source ·
pub trait Parser {
    type Data;

    // Required method
    fn next_event<S: Source>(&mut self, src: &mut S) -> ParserResult<Self::Data>;
}

Required Associated Types§

Required Methods§

source

fn next_event<S: Source>(&mut self, src: &mut S) -> ParserResult<Self::Data>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<P> Parser for Option<P>
where P: Parser,

§

type Data = <P as Parser>::Data

source§

fn next_event<S: Source>(&mut self, src: &mut S) -> ParserResult<Self::Data>

Implementors§

source§

impl Parser for EntityParser

§

type Data = Entity

source§

impl Parser for Paragraphs

§

type Data = Paragraph

source§

impl Parser for TagParser

§

type Data = Tag

source§

impl<P, F> Parser for Filtered<P, F>
where P: Parser, F: Filter<<P as Parser>::Data>,

§

type Data = <P as Parser>::Data

source§

impl<P, I, F> Parser for PartialPipedWith<P, I, F>
where P: Parser, I: IntoIterator<Item = Local<SourceEvent>>, F: FnMut(<P as Parser>::Data) -> Result<I, <P as Parser>::Data>,

§

type Data = <P as Parser>::Data

source§

impl<S, D, C> Parser for Runtime<S, D, C>
where S: StateMachine<Data = D, Context = C>,

§

type Data = D