pub trait CreateParserState: Parser {
    // Required method
    fn create_parser_state(&self) -> <Self as Parser>::PartialState;
}
Expand description

A trait for a parser with a default state.

Required Methods§

source

fn create_parser_state(&self) -> <Self as Parser>::PartialState

Create the default state of the parser.

Implementations on Foreign Types§

source§

impl<P: ?Sized + CreateParserState> CreateParserState for &P

source§

impl<P: ?Sized + CreateParserState> CreateParserState for Box<P>

source§

impl<P: ?Sized + CreateParserState> CreateParserState for Arc<P>

Implementors§

source§

impl CreateParserState for StructureParser

source§

impl CreateParserState for ArcParser

source§

impl CreateParserState for FloatParser

source§

impl CreateParserState for I8Parser

source§

impl CreateParserState for I16Parser

source§

impl CreateParserState for I32Parser

source§

impl CreateParserState for I64Parser

source§

impl CreateParserState for IntegerParser

source§

impl CreateParserState for RegexParser

source§

impl CreateParserState for StringParser<fn(_: char) -> bool>

source§

impl CreateParserState for U8Parser

source§

impl CreateParserState for U16Parser

source§

impl CreateParserState for U32Parser

source§

impl CreateParserState for U64Parser

source§

impl<E1, E2, O1, O2, PA1, PA2, P: Parser<Error = E1, Output = O1, PartialState = PA1> + CreateParserState, S: Parser<Error = E2, Output = O2, PartialState = PA2> + CreateParserState> CreateParserState for SeparatedParser<P, S>

source§

impl<E1, E2, O1: Clone, O2, PA1, PA2, P1: Parser<Error = E1, Output = O1, PartialState = PA1> + CreateParserState, P2: Parser<Error = E2, Output = O2, PartialState = PA2> + CreateParserState> CreateParserState for SequenceParser<P1, P2>

source§

impl<E1: Clone, E2: Clone, O1, O2, PA1, PA2, P1: Parser<Error = E1, Output = O1, PartialState = PA1> + CreateParserState, P2: Parser<Error = E2, Output = O2, PartialState = PA2> + CreateParserState> CreateParserState for ChoiceParser<P1, P2>

source§

impl<E, O, PA, P: Parser<Error = E, Output = O, PartialState = PA> + CreateParserState> CreateParserState for RepeatParser<P>
where P::PartialState: Clone, P::Output: Clone,

source§

impl<S: AsRef<str>> CreateParserState for LiteralParser<S>

source§

impl<S: AsRef<str>> CreateParserState for StopOn<S>

source§

impl<T: HasParser> CreateParserState for VecParser<T>

source§

impl<const MIN_LENGTH: usize, const MAX_LENGTH: usize> CreateParserState for SentenceParser<MIN_LENGTH, MAX_LENGTH>

source§

impl<const MIN_LENGTH: usize, const MAX_LENGTH: usize> CreateParserState for WordParser<MIN_LENGTH, MAX_LENGTH>

source§

impl<const N: usize, T: HasParser> CreateParserState for ArrayParser<N, T>