combine

Trait Parser

source
pub trait Parser<Input: Stream> {
    type Output;
    type PartialState: Default;

Show 27 methods // Provided methods fn parse( &mut self, input: Input, ) -> Result<(Self::Output, Input), <Input as StreamOnce>::Error> { ... } fn parse_with_state( &mut self, input: &mut Input, state: &mut Self::PartialState, ) -> Result<Self::Output, <Input as StreamOnce>::Error> { ... } fn parse_stream( &mut self, input: &mut Input, ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error> { ... } fn parse_lazy( &mut self, input: &mut Input, ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error> { ... } fn add_error(&mut self, _error: &mut Tracked<<Input as StreamOnce>::Error>) { ... } fn parse_stream_partial( &mut self, input: &mut Input, state: &mut Self::PartialState, ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error> { ... } fn by_ref(&mut self) -> &mut Self where Self: Sized { ... } fn with<P2>(self, p: P2) -> With<Self, P2> where Self: Sized, P2: Parser<Input> { ... } fn skip<P2>(self, p: P2) -> Skip<Self, P2> where Self: Sized, P2: Parser<Input> { ... } fn and<P2>(self, p: P2) -> (Self, P2) where Self: Sized, P2: Parser<Input> { ... } fn or<P2>(self, p: P2) -> Or<Self, P2> where Self: Sized, P2: Parser<Input, Output = Self::Output> { ... } fn then<N, F>(self, f: F) -> Then<Self, F> where Self: Sized, F: FnMut(Self::Output) -> N, N: Parser<Input> { ... } fn then_partial<N, F>(self, f: F) -> ThenPartial<Self, F> where Self: Sized, F: FnMut(&mut Self::Output) -> N, N: Parser<Input> { ... } fn then_ref<N, F>(self, f: F) -> ThenRef<Self, F> where Self: Sized, F: FnMut(&Self::Output) -> N, N: Parser<Input> { ... } fn map<F, B>(self, f: F) -> Map<Self, F> where Self: Sized, F: FnMut(Self::Output) -> B { ... } fn map_input<F, B>(self, f: F) -> MapInput<Self, F> where Self: Sized, F: FnMut(Self::Output, &mut Input) -> B { ... } fn flat_map<F, B>(self, f: F) -> FlatMap<Self, F> where Self: Sized, F: FnMut(Self::Output) -> Result<B, <Input as StreamOnce>::Error> { ... } fn message<S>(self, msg: S) -> Message<Self, S> where Self: Sized, S: for<'s> ErrorInfo<'s, Input::Token, Input::Range> { ... } fn expected<S>(self, msg: S) -> Expected<Self, S> where Self: Sized, S: for<'s> ErrorInfo<'s, Input::Token, Input::Range> { ... } fn silent(self) -> Silent<Self> where Self: Sized { ... } fn and_then<F, O, E>(self, f: F) -> AndThen<Self, F> where Self: Parser<Input> + Sized, F: FnMut(Self::Output) -> Result<O, E>, E: Into<<Input::Error as ParseError<Input::Token, Input::Range, Input::Position>>::StreamError> { ... } fn iter( self, input: &mut Input, ) -> Iter<'_, Input, Self, Self::PartialState, FirstMode> where Self: Parser<Input> + Sized { ... } fn partial_iter<'a, 's, M>( self, mode: M, input: &'a mut Input, partial_state: &'s mut Self::PartialState, ) -> Iter<'a, Input, Self, &'s mut Self::PartialState, M> where Self: Parser<Input> + Sized, M: ParseMode { ... } fn boxed<'a>( self, ) -> Box<dyn Parser<Input, Output = Self::Output, PartialState = Self::PartialState> + 'a> where Self: Sized + 'a { ... } fn left<R>(self) -> Either<Self, R> where Self: Sized, R: Parser<Input, Output = Self::Output> { ... } fn right<L>(self) -> Either<L, Self> where Self: Sized, L: Parser<Input, Output = Self::Output> { ... } fn spanned(self) -> Spanned<Self> where Self: Sized { ... }
}
Expand description

By implementing the Parser trait a type says that it can be used to parse an input stream into the type Output.

All methods have a default implementation but there needs to be at least an implementation of parse_stream, parse_stream, or parse_lazy. If the last is implemented, an implementation of add_error may also be required. See the documentation for parse_lazy for details.

Required Associated Types§

source

type Output

The type which is returned if the parser is successful.

source

type PartialState: Default

Determines the state necessary to resume parsing after more input is supplied.

If partial parsing is not supported this can be set to ().

Provided Methods§

source

fn parse( &mut self, input: Input, ) -> Result<(Self::Output, Input), <Input as StreamOnce>::Error>

Entry point of the parser. Takes some input and tries to parse it.

Returns the parsed result and the remaining input if the parser succeeds, or a error otherwise.

This is the most straightforward entry point to a parser. Since it does not decorate the input in any way you may find the error messages a hard to read. If that is the case you may want to try wrapping your input with an easy::Stream or call easy_parse instead.

source

fn parse_with_state( &mut self, input: &mut Input, state: &mut Self::PartialState, ) -> Result<Self::Output, <Input as StreamOnce>::Error>

Entry point of the parser when using partial parsing. Takes some input and tries to parse it.

Returns the parsed result and the remaining input if the parser succeeds, or a error otherwise.

source

fn parse_stream( &mut self, input: &mut Input, ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error>

Parses using the stream input by calling Stream::uncons one or more times.

Semantically equivalent to parse_stream, except this method returns a flattened result type, combining Result and Commit into a single ParseResult.

source

fn parse_lazy( &mut self, input: &mut Input, ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error>

Parses using the stream input by calling Stream::uncons one or more times.

Specialized version of parse_stream which permits error value creation to be skipped in the common case.

When this parser returns PeekErr, this method is allowed to return an empty Error. The error value that would have been returned can instead be obtained by calling add_error. This allows a parent parser such as choice to skip the creation of an unnecessary error value, if an alternative parser succeeds.

Parsers should seek to implement this function instead of the above two if errors can be encountered before consuming input. The default implementation always returns all errors, with add_error being a no-op.

source

fn add_error(&mut self, _error: &mut Tracked<<Input as StreamOnce>::Error>)

Adds the first error that would normally be returned by this parser if it failed with an PeekErr result.

See parse_lazy for details.

source

fn parse_stream_partial( &mut self, input: &mut Input, state: &mut Self::PartialState, ) -> ParseResult<Self::Output, <Input as StreamOnce>::Error>

Like parse_stream but supports partial parsing.

source

fn by_ref(&mut self) -> &mut Self
where Self: Sized,

Borrows a parser instead of consuming it.

Used to apply parser combinators on self without losing ownership.

fn test(input: &mut &'static str) -> StdParseResult<(char, char), &'static str> {
    let mut p = digit();
    let ((d, _), committed) = (p.by_ref(), letter()).parse_stream(input).into_result()?;
    let (d2, committed) = committed.combine(|_| p.parse_stream(input).into_result())?;
    Ok(((d, d2), committed))
}

fn main() {
    let mut input = "1a23";
    assert_eq!(
        test(&mut input).map(|(t, c)| (t, c.map(|_| input))),
        Ok((('1', '2'), Commit::Commit("3")))
    );
}
source

fn with<P2>(self, p: P2) -> With<Self, P2>
where Self: Sized, P2: Parser<Input>,

Discards the value of the self parser and returns the value of p. Fails if any of the parsers fails.

let result = digit()
    .with(token('i'))
    .parse("9i")
    .map(|x| x.0);
assert_eq!(result, Ok('i'));
source

fn skip<P2>(self, p: P2) -> Skip<Self, P2>
where Self: Sized, P2: Parser<Input>,

Discards the value of the p parser and returns the value of self. Fails if any of the parsers fails.

let result = digit()
    .skip(token('i'))
    .parse("9i")
    .map(|x| x.0);
assert_eq!(result, Ok('9'));
source

fn and<P2>(self, p: P2) -> (Self, P2)
where Self: Sized, P2: Parser<Input>,

Parses with self followed by p. Succeeds if both parsers succeed, otherwise fails. Returns a tuple with both values on success.

let result = digit()
    .and(token('i'))
    .parse("9i")
    .map(|x| x.0);
assert_eq!(result, Ok(('9', 'i')));
source

fn or<P2>(self, p: P2) -> Or<Self, P2>
where Self: Sized, P2: Parser<Input, Output = Self::Output>,

Returns a parser which attempts to parse using self. If self fails without committing it tries to consume the same input using p.

If you are looking to chain 3 or more parsers using or you may consider using the choice! macro instead, which can be clearer and may result in a faster parser.

let mut parser = string("let")
    .or(digit().map(|_| "digit"))
    .or(string("led"));
assert_eq!(parser.parse("let"), Ok(("let", "")));
assert_eq!(parser.parse("1"), Ok(("digit", "")));
assert!(parser.parse("led").is_err());

let mut parser2 = string("two").or(string("three"));
// Fails as the parser for "two" consumes the first 't' before failing
assert!(parser2.parse("three").is_err());

// Use 'attempt' to make failing parsers always act as if they have not committed any input
let mut parser3 = attempt(string("two")).or(attempt(string("three")));
assert_eq!(parser3.parse("three"), Ok(("three", "")));
source

fn then<N, F>(self, f: F) -> Then<Self, F>
where Self: Sized, F: FnMut(Self::Output) -> N, N: Parser<Input>,

Parses using self and then passes the value to f which returns a parser used to parse the rest of the input.

Since the parser returned from f must have a single type it can be useful to use the left and right methods to merge parsers of differing types into one.

If you are using partial parsing you may want to use then_partial instead.

let result = digit()
    .then(|d| {
        if d == '9' {
            value(9).left()
        }
        else {
            unexpected_any(d).message("Not a nine").right()
        }
    })
    .easy_parse("9");
assert_eq!(result, Ok((9, "")));
source

fn then_partial<N, F>(self, f: F) -> ThenPartial<Self, F>
where Self: Sized, F: FnMut(&mut Self::Output) -> N, N: Parser<Input>,

Variant of then which parses using self and then passes the value to f as a &mut reference.

Useful when doing partial parsing since it does not need to store the parser returned by f in the partial state. Instead it will call f each to request a new parser each time parsing resumes and that parser is needed.

Since the parser returned from f must have a single type it can be useful to use the left and right methods to merge parsers of differing types into one.

let result = digit()
    .then_partial(|d| {
        if *d == '9' {
            value(9).left()
        }
        else {
            unexpected_any(*d).message("Not a nine").right()
        }
    })
    .easy_parse("9");
assert_eq!(result, Ok((9, "")));
source

fn then_ref<N, F>(self, f: F) -> ThenRef<Self, F>
where Self: Sized, F: FnMut(&Self::Output) -> N, N: Parser<Input>,

Parses using self and then passes a reference to the value to f which returns a parser used to parse the rest of the input. The value is then combined with the output of f.

Since the parser returned from f must have a single type it can be useful to use the left and right methods to merge parsers of differing types into one.

let result = digit()
    .then_ref(|d| {
        if *d == '9' {
            digit().left()
        }
        else {
            unexpected_any(*d).message("Not a nine").right()
        }
    })
    .easy_parse("98");
assert_eq!(result, Ok((('9', '8'), "")));
source

fn map<F, B>(self, f: F) -> Map<Self, F>
where Self: Sized, F: FnMut(Self::Output) -> B,

Uses f to map over the parsed value.

let result = digit()
    .map(|c| c == '9')
    .parse("9")
    .map(|x| x.0);
assert_eq!(result, Ok(true));
source

fn map_input<F, B>(self, f: F) -> MapInput<Self, F>
where Self: Sized, F: FnMut(Self::Output, &mut Input) -> B,

source

fn flat_map<F, B>(self, f: F) -> FlatMap<Self, F>
where Self: Sized, F: FnMut(Self::Output) -> Result<B, <Input as StreamOnce>::Error>,

Uses f to map over the output of self. If f returns an error the parser fails.

let result = take(4)
    .flat_map(|bs| many(digit()).parse(bs).map(|t| t.0))
    .parse("12abcd");
assert_eq!(result, Ok((String::from("12"), "cd")));
source

fn message<S>(self, msg: S) -> Message<Self, S>
where Self: Sized, S: for<'s> ErrorInfo<'s, Input::Token, Input::Range>,

Parses with self and if it fails, adds the message msg to the error.

let result = token('9')
    .message("Not a nine")
    .easy_parse(position::Stream::new("8"));
assert_eq!(result, Err(easy::Errors {
    position: SourcePosition::default(),
    errors: vec![
        easy::Error::Unexpected('8'.into()),
        easy::Error::Expected('9'.into()),
        easy::Error::Message("Not a nine".into())
    ]
}));
source

fn expected<S>(self, msg: S) -> Expected<Self, S>
where Self: Sized, S: for<'s> ErrorInfo<'s, Input::Token, Input::Range>,

Parses with self and if it fails without consuming any input any expected errors are replaced by msg. msg is then used in error messages as “Expected msg”.

let result = token('9')
    .expected("nine")
    .easy_parse(position::Stream::new("8"));
assert_eq!(result, Err(easy::Errors {
    position: SourcePosition::default(),
    errors: vec![
        easy::Error::Unexpected('8'.into()),
        easy::Error::Expected("nine".into())
    ]
}));

let result = token('9')
    .expected(error::Format(format_args!("That is not a nine!")))
    .easy_parse(position::Stream::new("8"));
assert_eq!(result, Err(easy::Errors {
    position: SourcePosition::default(),
    errors: vec![
        easy::Error::Unexpected('8'.into()),
        easy::Error::Expected("That is not a nine!".to_string().into())
    ]
}));
source

fn silent(self) -> Silent<Self>
where Self: Sized,

Parses with self, if it fails without consuming any input any expected errors that would otherwise be emitted by self are suppressed.

let result = token('9')
    .expected("nine")
    .silent()
    .easy_parse(position::Stream::new("8"));
assert_eq!(result, Err(easy::Errors {
    position: SourcePosition::default(),
    errors: vec![
        easy::Error::Unexpected('8'.into()),
    ]
}));
source

fn and_then<F, O, E>(self, f: F) -> AndThen<Self, F>
where Self: Parser<Input> + Sized, F: FnMut(Self::Output) -> Result<O, E>, E: Into<<Input::Error as ParseError<Input::Token, Input::Range, Input::Position>>::StreamError>,

Parses with self and applies f on the result if self parses successfully. f may optionally fail with an error which is automatically converted to a ParseError.

let mut parser = many1(digit())
    .and_then(|s: String| s.parse::<i32>());
let result = parser.easy_parse(position::Stream::new("1234")).map(|(x, state)| (x, state.input));
assert_eq!(result, Ok((1234, "")));
let result = parser.easy_parse(position::Stream::new("999999999999999999999999"));
assert!(result.is_err());
// Errors are report as if they occurred at the start of the parse
assert_eq!(result.unwrap_err().position, SourcePosition { line: 1, column: 1 });
source

fn iter( self, input: &mut Input, ) -> Iter<'_, Input, Self, Self::PartialState, FirstMode>
where Self: Parser<Input> + Sized,

Creates an iterator from a parser and a state. Can be used as an alternative to many when collecting directly into a Extend type is not desirable.

let mut buffer = String::new();
let number = parser(|input| {
    buffer.clear();
    let mut iter = digit().iter(input);
    buffer.extend(&mut iter);
    let i = buffer.parse::<i32>().unwrap();
    iter.into_result(i)
});
let result = sep_by(number, char(','))
    .parse("123,45,6");
assert_eq!(result, Ok((vec![123, 45, 6], "")));
source

fn partial_iter<'a, 's, M>( self, mode: M, input: &'a mut Input, partial_state: &'s mut Self::PartialState, ) -> Iter<'a, Input, Self, &'s mut Self::PartialState, M>
where Self: Parser<Input> + Sized, M: ParseMode,

Creates an iterator from a parser and a state. Can be used as an alternative to many when collecting directly into a Extend type is not desirable.

let mut buffer = String::new();
let number = parser(|input| {
    buffer.clear();
    let mut iter = digit().iter(input);
    buffer.extend(&mut iter);
    let i = buffer.parse::<i32>().unwrap();
    iter.into_result(i)
});
let result = sep_by(number, char(','))
    .parse("123,45,6");
assert_eq!(result, Ok((vec![123, 45, 6], "")));
source

fn boxed<'a>( self, ) -> Box<dyn Parser<Input, Output = Self::Output, PartialState = Self::PartialState> + 'a>
where Self: Sized + 'a,

Turns the parser into a trait object by putting it in a Box. Can be used to easily return parsers from functions without naming the type.

fn test<'input, F>(
    c: char,
    f: F)
    -> Box<dyn Parser<&'input str, Output = (char, char), PartialState = ()> + 'input>
    where F: FnMut(char) -> bool + 'static
{
    combine::parser::combinator::no_partial((token(c), satisfy(f))).boxed()
}
let result = test('a', |c| c >= 'a' && c <= 'f')
    .parse("ac");
assert_eq!(result, Ok((('a', 'c'), "")));
source

fn left<R>(self) -> Either<Self, R>
where Self: Sized, R: Parser<Input, Output = Self::Output>,

Wraps the parser into the Either enum which allows combinators such as then to return multiple different parser types (merging them to one)

let mut parser = any().then(|c|
    if c == '#' {
        skip_many(satisfy(|c| c != '\n'))
            .with(value("".to_string()))
            .left()
    } else {
        many1(letter())
            .map(move |mut s: String| { s.insert(0, c); s })
            .right()
    });

let result = parser.parse("ac2");
assert_eq!(result, Ok(("ac".to_string(), "2")));

let result = parser.parse("# ac2");
assert_eq!(result, Ok(("".to_string(), "")));
source

fn right<L>(self) -> Either<L, Self>
where Self: Sized, L: Parser<Input, Output = Self::Output>,

Wraps the parser into the Either enum which allows combinators such as then to return multiple different parser types (merging them to one)

let mut parser = any().then(|c|
    if c == '#' {
        skip_many(satisfy(|c| c != '\n'))
            .with(value("".to_string()))
            .left()
    } else {
        many1(letter())
            .map(move |mut s: String| { s.insert(0, c); s })
            .right()
    });

let result = parser.parse("ac2");
assert_eq!(result, Ok(("ac".to_string(), "2")));

let result = parser.parse("# ac2");
assert_eq!(result, Ok(("".to_string(), "")));
source

fn spanned(self) -> Spanned<Self>
where Self: Sized,

Marks errors produced inside the self parser with the span from the start of the parse to the end of it.

use combine::{*, parser::{char::string, combinator::spanned}};
use combine::stream::{easy, span};

let input = "hel";
let result = spanned(string("hello")).parse(
    span::Stream::<_, easy::Errors<_, _, span::Span<_>>>::from(easy::Stream::from(input)),
);
assert!(result.is_err());
assert_eq!(
    result.unwrap_err().position.map(|p| p.translate_position(input)),
    span::Span { start: 0, end: 3 },
);

Implementations on Foreign Types§

source§

impl<'a, Input: Stream, O> Parser<Input> for dyn FnMut(&mut Input) -> StdParseResult<O, Input> + 'a

source§

type Output = O

source§

type PartialState = ()

source§

fn parse_lazy(&mut self, input: &mut Input) -> ParseResult<O, Input::Error>

source§

impl<'a, P, Input> Parser<Input> for &'a mut P
where P: ?Sized + Parser<Input>, Input: Stream,

source§

type Output = <P as Parser<Input>>::Output

source§

type PartialState = <P as Parser<Input>>::PartialState

source§

fn add_error(&mut self, error: &mut Tracked<<Input as StreamOnce>::Error>)

source§

impl<Input, A> Parser<Input> for (A,)
where Input: Stream, A: Parser<Input>,

source§

type Output = (<A as Parser<Input>>::Output,)

source§

type PartialState = PartialState1<SequenceState<<A as Parser<Input>>::Output, <A as Parser<Input>>::PartialState>>

source§

fn add_error(&mut self, errors: &mut Tracked<<Input as StreamOnce>::Error>)

source§

impl<Input, A, B> Parser<Input> for (A, B)
where Input: Stream, A: Parser<Input>, B: Parser<Input>,

source§

type Output = (<A as Parser<Input>>::Output, <B as Parser<Input>>::Output)

source§

type PartialState = PartialState2<SequenceState<<A as Parser<Input>>::Output, <A as Parser<Input>>::PartialState>, SequenceState<<B as Parser<Input>>::Output, <B as Parser<Input>>::PartialState>>

source§

fn add_error(&mut self, errors: &mut Tracked<<Input as StreamOnce>::Error>)

source§

impl<Input, A, B, C> Parser<Input> for (A, B, C)
where Input: Stream, A: Parser<Input>, B: Parser<Input>, C: Parser<Input>,

source§

type Output = (<A as Parser<Input>>::Output, <B as Parser<Input>>::Output, <C as Parser<Input>>::Output)

source§

type PartialState = PartialState3<SequenceState<<A as Parser<Input>>::Output, <A as Parser<Input>>::PartialState>, SequenceState<<B as Parser<Input>>::Output, <B as Parser<Input>>::PartialState>, SequenceState<<C as Parser<Input>>::Output, <C as Parser<Input>>::PartialState>>

source§

fn add_error(&mut self, errors: &mut Tracked<<Input as StreamOnce>::Error>)

source§

impl<Input, A, B, C, D> Parser<Input> for (A, B, C, D)
where Input: Stream, A: Parser<Input>, B: Parser<Input>, C: Parser<Input>, D: Parser<Input>,

source§

type Output = (<A as Parser<Input>>::Output, <B as Parser<Input>>::Output, <C as Parser<Input>>::Output, <D as Parser<Input>>::Output)

source§

type PartialState = PartialState4<SequenceState<<A as Parser<Input>>::Output, <A as Parser<Input>>::PartialState>, SequenceState<<B as Parser<Input>>::Output, <B as Parser<Input>>::PartialState>, SequenceState<<C as Parser<Input>>::Output, <C as Parser<Input>>::PartialState>, SequenceState<<D as Parser<Input>>::Output, <D as Parser<Input>>::PartialState>>

source§

fn add_error(&mut self, errors: &mut Tracked<<Input as StreamOnce>::Error>)

source§

impl<Input, A, B, C, D, E> Parser<Input> for (A, B, C, D, E)
where Input: Stream, A: Parser<Input>, B: Parser<Input>, C: Parser<Input>, D: Parser<Input>, E: Parser<Input>,

source§

type Output = (<A as Parser<Input>>::Output, <B as Parser<Input>>::Output, <C as Parser<Input>>::Output, <D as Parser<Input>>::Output, <E as Parser<Input>>::Output)

source§

type PartialState = PartialState5<SequenceState<<A as Parser<Input>>::Output, <A as Parser<Input>>::PartialState>, SequenceState<<B as Parser<Input>>::Output, <B as Parser<Input>>::PartialState>, SequenceState<<C as Parser<Input>>::Output, <C as Parser<Input>>::PartialState>, SequenceState<<D as Parser<Input>>::Output, <D as Parser<Input>>::PartialState>, SequenceState<<E as Parser<Input>>::Output, <E as Parser<Input>>::PartialState>>

source§

fn add_error(&mut self, errors: &mut Tracked<<Input as StreamOnce>::Error>)

source§

impl<Input, A, B, C, D, E, F> Parser<Input> for (A, B, C, D, E, F)
where Input: Stream, A: Parser<Input>, B: Parser<Input>, C: Parser<Input>, D: Parser<Input>, E: Parser<Input>, F: Parser<Input>,

source§

type Output = (<A as Parser<Input>>::Output, <B as Parser<Input>>::Output, <C as Parser<Input>>::Output, <D as Parser<Input>>::Output, <E as Parser<Input>>::Output, <F as Parser<Input>>::Output)

source§

type PartialState = PartialState6<SequenceState<<A as Parser<Input>>::Output, <A as Parser<Input>>::PartialState>, SequenceState<<B as Parser<Input>>::Output, <B as Parser<Input>>::PartialState>, SequenceState<<C as Parser<Input>>::Output, <C as Parser<Input>>::PartialState>, SequenceState<<D as Parser<Input>>::Output, <D as Parser<Input>>::PartialState>, SequenceState<<E as Parser<Input>>::Output, <E as Parser<Input>>::PartialState>, SequenceState<<F as Parser<Input>>::Output, <F as Parser<Input>>::PartialState>>

source§

fn add_error(&mut self, errors: &mut Tracked<<Input as StreamOnce>::Error>)

source§

impl<Input, A, B, C, D, E, F, G> Parser<Input> for (A, B, C, D, E, F, G)
where Input: Stream, A: Parser<Input>, B: Parser<Input>, C: Parser<Input>, D: Parser<Input>, E: Parser<Input>, F: Parser<Input>, G: Parser<Input>,

source§

type Output = (<A as Parser<Input>>::Output, <B as Parser<Input>>::Output, <C as Parser<Input>>::Output, <D as Parser<Input>>::Output, <E as Parser<Input>>::Output, <F as Parser<Input>>::Output, <G as Parser<Input>>::Output)

source§

type PartialState = PartialState7<SequenceState<<A as Parser<Input>>::Output, <A as Parser<Input>>::PartialState>, SequenceState<<B as Parser<Input>>::Output, <B as Parser<Input>>::PartialState>, SequenceState<<C as Parser<Input>>::Output, <C as Parser<Input>>::PartialState>, SequenceState<<D as Parser<Input>>::Output, <D as Parser<Input>>::PartialState>, SequenceState<<E as Parser<Input>>::Output, <E as Parser<Input>>::PartialState>, SequenceState<<F as Parser<Input>>::Output, <F as Parser<Input>>::PartialState>, SequenceState<<G as Parser<Input>>::Output, <G as Parser<Input>>::PartialState>>

source§

fn add_error(&mut self, errors: &mut Tracked<<Input as StreamOnce>::Error>)

source§

impl<Input, A, B, C, D, E, F, G, H> Parser<Input> for (A, B, C, D, E, F, G, H)
where Input: Stream, A: Parser<Input>, B: Parser<Input>, C: Parser<Input>, D: Parser<Input>, E: Parser<Input>, F: Parser<Input>, G: Parser<Input>, H: Parser<Input>,

source§

type Output = (<A as Parser<Input>>::Output, <B as Parser<Input>>::Output, <C as Parser<Input>>::Output, <D as Parser<Input>>::Output, <E as Parser<Input>>::Output, <F as Parser<Input>>::Output, <G as Parser<Input>>::Output, <H as Parser<Input>>::Output)

source§

type PartialState = PartialState8<SequenceState<<A as Parser<Input>>::Output, <A as Parser<Input>>::PartialState>, SequenceState<<B as Parser<Input>>::Output, <B as Parser<Input>>::PartialState>, SequenceState<<C as Parser<Input>>::Output, <C as Parser<Input>>::PartialState>, SequenceState<<D as Parser<Input>>::Output, <D as Parser<Input>>::PartialState>, SequenceState<<E as Parser<Input>>::Output, <E as Parser<Input>>::PartialState>, SequenceState<<F as Parser<Input>>::Output, <F as Parser<Input>>::PartialState>, SequenceState<<G as Parser<Input>>::Output, <G as Parser<Input>>::PartialState>, SequenceState<<H as Parser<Input>>::Output, <H as Parser<Input>>::PartialState>>

source§

fn add_error(&mut self, errors: &mut Tracked<<Input as StreamOnce>::Error>)

source§

impl<Input, A, B, C, D, E, F, G, H, I> Parser<Input> for (A, B, C, D, E, F, G, H, I)
where Input: Stream, A: Parser<Input>, B: Parser<Input>, C: Parser<Input>, D: Parser<Input>, E: Parser<Input>, F: Parser<Input>, G: Parser<Input>, H: Parser<Input>, I: Parser<Input>,

source§

type Output = (<A as Parser<Input>>::Output, <B as Parser<Input>>::Output, <C as Parser<Input>>::Output, <D as Parser<Input>>::Output, <E as Parser<Input>>::Output, <F as Parser<Input>>::Output, <G as Parser<Input>>::Output, <H as Parser<Input>>::Output, <I as Parser<Input>>::Output)

source§

type PartialState = PartialState9<SequenceState<<A as Parser<Input>>::Output, <A as Parser<Input>>::PartialState>, SequenceState<<B as Parser<Input>>::Output, <B as Parser<Input>>::PartialState>, SequenceState<<C as Parser<Input>>::Output, <C as Parser<Input>>::PartialState>, SequenceState<<D as Parser<Input>>::Output, <D as Parser<Input>>::PartialState>, SequenceState<<E as Parser<Input>>::Output, <E as Parser<Input>>::PartialState>, SequenceState<<F as Parser<Input>>::Output, <F as Parser<Input>>::PartialState>, SequenceState<<G as Parser<Input>>::Output, <G as Parser<Input>>::PartialState>, SequenceState<<H as Parser<Input>>::Output, <H as Parser<Input>>::PartialState>, SequenceState<<I as Parser<Input>>::Output, <I as Parser<Input>>::PartialState>>

source§

fn add_error(&mut self, errors: &mut Tracked<<Input as StreamOnce>::Error>)

source§

impl<Input, A, B, C, D, E, F, G, H, I, J> Parser<Input> for (A, B, C, D, E, F, G, H, I, J)
where Input: Stream, A: Parser<Input>, B: Parser<Input>, C: Parser<Input>, D: Parser<Input>, E: Parser<Input>, F: Parser<Input>, G: Parser<Input>, H: Parser<Input>, I: Parser<Input>, J: Parser<Input>,

source§

type Output = (<A as Parser<Input>>::Output, <B as Parser<Input>>::Output, <C as Parser<Input>>::Output, <D as Parser<Input>>::Output, <E as Parser<Input>>::Output, <F as Parser<Input>>::Output, <G as Parser<Input>>::Output, <H as Parser<Input>>::Output, <I as Parser<Input>>::Output, <J as Parser<Input>>::Output)

source§

type PartialState = PartialState10<SequenceState<<A as Parser<Input>>::Output, <A as Parser<Input>>::PartialState>, SequenceState<<B as Parser<Input>>::Output, <B as Parser<Input>>::PartialState>, SequenceState<<C as Parser<Input>>::Output, <C as Parser<Input>>::PartialState>, SequenceState<<D as Parser<Input>>::Output, <D as Parser<Input>>::PartialState>, SequenceState<<E as Parser<Input>>::Output, <E as Parser<Input>>::PartialState>, SequenceState<<F as Parser<Input>>::Output, <F as Parser<Input>>::PartialState>, SequenceState<<G as Parser<Input>>::Output, <G as Parser<Input>>::PartialState>, SequenceState<<H as Parser<Input>>::Output, <H as Parser<Input>>::PartialState>, SequenceState<<I as Parser<Input>>::Output, <I as Parser<Input>>::PartialState>, SequenceState<<J as Parser<Input>>::Output, <J as Parser<Input>>::PartialState>>

source§

fn add_error(&mut self, errors: &mut Tracked<<Input as StreamOnce>::Error>)

source§

impl<Input, A, B, C, D, E, F, G, H, I, J, K> Parser<Input> for (A, B, C, D, E, F, G, H, I, J, K)
where Input: Stream, A: Parser<Input>, B: Parser<Input>, C: Parser<Input>, D: Parser<Input>, E: Parser<Input>, F: Parser<Input>, G: Parser<Input>, H: Parser<Input>, I: Parser<Input>, J: Parser<Input>, K: Parser<Input>,

source§

type Output = (<A as Parser<Input>>::Output, <B as Parser<Input>>::Output, <C as Parser<Input>>::Output, <D as Parser<Input>>::Output, <E as Parser<Input>>::Output, <F as Parser<Input>>::Output, <G as Parser<Input>>::Output, <H as Parser<Input>>::Output, <I as Parser<Input>>::Output, <J as Parser<Input>>::Output, <K as Parser<Input>>::Output)

source§

type PartialState = PartialState11<SequenceState<<A as Parser<Input>>::Output, <A as Parser<Input>>::PartialState>, SequenceState<<B as Parser<Input>>::Output, <B as Parser<Input>>::PartialState>, SequenceState<<C as Parser<Input>>::Output, <C as Parser<Input>>::PartialState>, SequenceState<<D as Parser<Input>>::Output, <D as Parser<Input>>::PartialState>, SequenceState<<E as Parser<Input>>::Output, <E as Parser<Input>>::PartialState>, SequenceState<<F as Parser<Input>>::Output, <F as Parser<Input>>::PartialState>, SequenceState<<G as Parser<Input>>::Output, <G as Parser<Input>>::PartialState>, SequenceState<<H as Parser<Input>>::Output, <H as Parser<Input>>::PartialState>, SequenceState<<I as Parser<Input>>::Output, <I as Parser<Input>>::PartialState>, SequenceState<<J as Parser<Input>>::Output, <J as Parser<Input>>::PartialState>, SequenceState<<K as Parser<Input>>::Output, <K as Parser<Input>>::PartialState>>

source§

fn add_error(&mut self, errors: &mut Tracked<<Input as StreamOnce>::Error>)

source§

impl<Input, A, B, C, D, E, F, G, H, I, J, K, L> Parser<Input> for (A, B, C, D, E, F, G, H, I, J, K, L)
where Input: Stream, A: Parser<Input>, B: Parser<Input>, C: Parser<Input>, D: Parser<Input>, E: Parser<Input>, F: Parser<Input>, G: Parser<Input>, H: Parser<Input>, I: Parser<Input>, J: Parser<Input>, K: Parser<Input>, L: Parser<Input>,

source§

type Output = (<A as Parser<Input>>::Output, <B as Parser<Input>>::Output, <C as Parser<Input>>::Output, <D as Parser<Input>>::Output, <E as Parser<Input>>::Output, <F as Parser<Input>>::Output, <G as Parser<Input>>::Output, <H as Parser<Input>>::Output, <I as Parser<Input>>::Output, <J as Parser<Input>>::Output, <K as Parser<Input>>::Output, <L as Parser<Input>>::Output)

source§

type PartialState = PartialState12<SequenceState<<A as Parser<Input>>::Output, <A as Parser<Input>>::PartialState>, SequenceState<<B as Parser<Input>>::Output, <B as Parser<Input>>::PartialState>, SequenceState<<C as Parser<Input>>::Output, <C as Parser<Input>>::PartialState>, SequenceState<<D as Parser<Input>>::Output, <D as Parser<Input>>::PartialState>, SequenceState<<E as Parser<Input>>::Output, <E as Parser<Input>>::PartialState>, SequenceState<<F as Parser<Input>>::Output, <F as Parser<Input>>::PartialState>, SequenceState<<G as Parser<Input>>::Output, <G as Parser<Input>>::PartialState>, SequenceState<<H as Parser<Input>>::Output, <H as Parser<Input>>::PartialState>, SequenceState<<I as Parser<Input>>::Output, <I as Parser<Input>>::PartialState>, SequenceState<<J as Parser<Input>>::Output, <J as Parser<Input>>::PartialState>, SequenceState<<K as Parser<Input>>::Output, <K as Parser<Input>>::PartialState>, SequenceState<<L as Parser<Input>>::Output, <L as Parser<Input>>::PartialState>>

source§

fn add_error(&mut self, errors: &mut Tracked<<Input as StreamOnce>::Error>)

source§

impl<Input, A, B, C, D, E, F, G, H, I, J, K, L, M> Parser<Input> for (A, B, C, D, E, F, G, H, I, J, K, L, M)
where Input: Stream, A: Parser<Input>, B: Parser<Input>, C: Parser<Input>, D: Parser<Input>, E: Parser<Input>, F: Parser<Input>, G: Parser<Input>, H: Parser<Input>, I: Parser<Input>, J: Parser<Input>, K: Parser<Input>, L: Parser<Input>, M: Parser<Input>,

source§

type Output = (<A as Parser<Input>>::Output, <B as Parser<Input>>::Output, <C as Parser<Input>>::Output, <D as Parser<Input>>::Output, <E as Parser<Input>>::Output, <F as Parser<Input>>::Output, <G as Parser<Input>>::Output, <H as Parser<Input>>::Output, <I as Parser<Input>>::Output, <J as Parser<Input>>::Output, <K as Parser<Input>>::Output, <L as Parser<Input>>::Output, <M as Parser<Input>>::Output)

source§

type PartialState = PartialState13<SequenceState<<A as Parser<Input>>::Output, <A as Parser<Input>>::PartialState>, SequenceState<<B as Parser<Input>>::Output, <B as Parser<Input>>::PartialState>, SequenceState<<C as Parser<Input>>::Output, <C as Parser<Input>>::PartialState>, SequenceState<<D as Parser<Input>>::Output, <D as Parser<Input>>::PartialState>, SequenceState<<E as Parser<Input>>::Output, <E as Parser<Input>>::PartialState>, SequenceState<<F as Parser<Input>>::Output, <F as Parser<Input>>::PartialState>, SequenceState<<G as Parser<Input>>::Output, <G as Parser<Input>>::PartialState>, SequenceState<<H as Parser<Input>>::Output, <H as Parser<Input>>::PartialState>, SequenceState<<I as Parser<Input>>::Output, <I as Parser<Input>>::PartialState>, SequenceState<<J as Parser<Input>>::Output, <J as Parser<Input>>::PartialState>, SequenceState<<K as Parser<Input>>::Output, <K as Parser<Input>>::PartialState>, SequenceState<<L as Parser<Input>>::Output, <L as Parser<Input>>::PartialState>, SequenceState<<M as Parser<Input>>::Output, <M as Parser<Input>>::PartialState>>

source§

fn add_error(&mut self, errors: &mut Tracked<<Input as StreamOnce>::Error>)

source§

impl<Input, A, B, C, D, E, F, G, H, I, J, K, L, M, N> Parser<Input> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N)
where Input: Stream, A: Parser<Input>, B: Parser<Input>, C: Parser<Input>, D: Parser<Input>, E: Parser<Input>, F: Parser<Input>, G: Parser<Input>, H: Parser<Input>, I: Parser<Input>, J: Parser<Input>, K: Parser<Input>, L: Parser<Input>, M: Parser<Input>, N: Parser<Input>,

source§

type Output = (<A as Parser<Input>>::Output, <B as Parser<Input>>::Output, <C as Parser<Input>>::Output, <D as Parser<Input>>::Output, <E as Parser<Input>>::Output, <F as Parser<Input>>::Output, <G as Parser<Input>>::Output, <H as Parser<Input>>::Output, <I as Parser<Input>>::Output, <J as Parser<Input>>::Output, <K as Parser<Input>>::Output, <L as Parser<Input>>::Output, <M as Parser<Input>>::Output, <N as Parser<Input>>::Output)

source§

type PartialState = PartialState14<SequenceState<<A as Parser<Input>>::Output, <A as Parser<Input>>::PartialState>, SequenceState<<B as Parser<Input>>::Output, <B as Parser<Input>>::PartialState>, SequenceState<<C as Parser<Input>>::Output, <C as Parser<Input>>::PartialState>, SequenceState<<D as Parser<Input>>::Output, <D as Parser<Input>>::PartialState>, SequenceState<<E as Parser<Input>>::Output, <E as Parser<Input>>::PartialState>, SequenceState<<F as Parser<Input>>::Output, <F as Parser<Input>>::PartialState>, SequenceState<<G as Parser<Input>>::Output, <G as Parser<Input>>::PartialState>, SequenceState<<H as Parser<Input>>::Output, <H as Parser<Input>>::PartialState>, SequenceState<<I as Parser<Input>>::Output, <I as Parser<Input>>::PartialState>, SequenceState<<J as Parser<Input>>::Output, <J as Parser<Input>>::PartialState>, SequenceState<<K as Parser<Input>>::Output, <K as Parser<Input>>::PartialState>, SequenceState<<L as Parser<Input>>::Output, <L as Parser<Input>>::PartialState>, SequenceState<<M as Parser<Input>>::Output, <M as Parser<Input>>::PartialState>, SequenceState<<N as Parser<Input>>::Output, <N as Parser<Input>>::PartialState>>

source§

fn add_error(&mut self, errors: &mut Tracked<<Input as StreamOnce>::Error>)

source§

impl<Input, A, B, C, D, E, F, G, H, I, J, K, L, M, N, P> Parser<Input> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, P)
where Input: Stream, A: Parser<Input>, B: Parser<Input>, C: Parser<Input>, D: Parser<Input>, E: Parser<Input>, F: Parser<Input>, G: Parser<Input>, H: Parser<Input>, I: Parser<Input>, J: Parser<Input>, K: Parser<Input>, L: Parser<Input>, M: Parser<Input>, N: Parser<Input>, P: Parser<Input>,

source§

type Output = (<A as Parser<Input>>::Output, <B as Parser<Input>>::Output, <C as Parser<Input>>::Output, <D as Parser<Input>>::Output, <E as Parser<Input>>::Output, <F as Parser<Input>>::Output, <G as Parser<Input>>::Output, <H as Parser<Input>>::Output, <I as Parser<Input>>::Output, <J as Parser<Input>>::Output, <K as Parser<Input>>::Output, <L as Parser<Input>>::Output, <M as Parser<Input>>::Output, <N as Parser<Input>>::Output, <P as Parser<Input>>::Output)

source§

type PartialState = PartialState15<SequenceState<<A as Parser<Input>>::Output, <A as Parser<Input>>::PartialState>, SequenceState<<B as Parser<Input>>::Output, <B as Parser<Input>>::PartialState>, SequenceState<<C as Parser<Input>>::Output, <C as Parser<Input>>::PartialState>, SequenceState<<D as Parser<Input>>::Output, <D as Parser<Input>>::PartialState>, SequenceState<<E as Parser<Input>>::Output, <E as Parser<Input>>::PartialState>, SequenceState<<F as Parser<Input>>::Output, <F as Parser<Input>>::PartialState>, SequenceState<<G as Parser<Input>>::Output, <G as Parser<Input>>::PartialState>, SequenceState<<H as Parser<Input>>::Output, <H as Parser<Input>>::PartialState>, SequenceState<<I as Parser<Input>>::Output, <I as Parser<Input>>::PartialState>, SequenceState<<J as Parser<Input>>::Output, <J as Parser<Input>>::PartialState>, SequenceState<<K as Parser<Input>>::Output, <K as Parser<Input>>::PartialState>, SequenceState<<L as Parser<Input>>::Output, <L as Parser<Input>>::PartialState>, SequenceState<<M as Parser<Input>>::Output, <M as Parser<Input>>::PartialState>, SequenceState<<N as Parser<Input>>::Output, <N as Parser<Input>>::PartialState>, SequenceState<<P as Parser<Input>>::Output, <P as Parser<Input>>::PartialState>>

source§

fn add_error(&mut self, errors: &mut Tracked<<Input as StreamOnce>::Error>)

source§

impl<Input, A, B, C, D, E, F, G, H, I, J, K, L, M, N, P, Q> Parser<Input> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, P, Q)
where Input: Stream, A: Parser<Input>, B: Parser<Input>, C: Parser<Input>, D: Parser<Input>, E: Parser<Input>, F: Parser<Input>, G: Parser<Input>, H: Parser<Input>, I: Parser<Input>, J: Parser<Input>, K: Parser<Input>, L: Parser<Input>, M: Parser<Input>, N: Parser<Input>, P: Parser<Input>, Q: Parser<Input>,

source§

type Output = (<A as Parser<Input>>::Output, <B as Parser<Input>>::Output, <C as Parser<Input>>::Output, <D as Parser<Input>>::Output, <E as Parser<Input>>::Output, <F as Parser<Input>>::Output, <G as Parser<Input>>::Output, <H as Parser<Input>>::Output, <I as Parser<Input>>::Output, <J as Parser<Input>>::Output, <K as Parser<Input>>::Output, <L as Parser<Input>>::Output, <M as Parser<Input>>::Output, <N as Parser<Input>>::Output, <P as Parser<Input>>::Output, <Q as Parser<Input>>::Output)

source§

type PartialState = PartialState16<SequenceState<<A as Parser<Input>>::Output, <A as Parser<Input>>::PartialState>, SequenceState<<B as Parser<Input>>::Output, <B as Parser<Input>>::PartialState>, SequenceState<<C as Parser<Input>>::Output, <C as Parser<Input>>::PartialState>, SequenceState<<D as Parser<Input>>::Output, <D as Parser<Input>>::PartialState>, SequenceState<<E as Parser<Input>>::Output, <E as Parser<Input>>::PartialState>, SequenceState<<F as Parser<Input>>::Output, <F as Parser<Input>>::PartialState>, SequenceState<<G as Parser<Input>>::Output, <G as Parser<Input>>::PartialState>, SequenceState<<H as Parser<Input>>::Output, <H as Parser<Input>>::PartialState>, SequenceState<<I as Parser<Input>>::Output, <I as Parser<Input>>::PartialState>, SequenceState<<J as Parser<Input>>::Output, <J as Parser<Input>>::PartialState>, SequenceState<<K as Parser<Input>>::Output, <K as Parser<Input>>::PartialState>, SequenceState<<L as Parser<Input>>::Output, <L as Parser<Input>>::PartialState>, SequenceState<<M as Parser<Input>>::Output, <M as Parser<Input>>::PartialState>, SequenceState<<N as Parser<Input>>::Output, <N as Parser<Input>>::PartialState>, SequenceState<<P as Parser<Input>>::Output, <P as Parser<Input>>::PartialState>, SequenceState<<Q as Parser<Input>>::Output, <Q as Parser<Input>>::PartialState>>

source§

fn add_error(&mut self, errors: &mut Tracked<<Input as StreamOnce>::Error>)

source§

impl<Input, A, B, C, D, E, F, G, H, I, J, K, L, M, N, P, Q, R> Parser<Input> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, P, Q, R)
where Input: Stream, A: Parser<Input>, B: Parser<Input>, C: Parser<Input>, D: Parser<Input>, E: Parser<Input>, F: Parser<Input>, G: Parser<Input>, H: Parser<Input>, I: Parser<Input>, J: Parser<Input>, K: Parser<Input>, L: Parser<Input>, M: Parser<Input>, N: Parser<Input>, P: Parser<Input>, Q: Parser<Input>, R: Parser<Input>,

source§

type Output = (<A as Parser<Input>>::Output, <B as Parser<Input>>::Output, <C as Parser<Input>>::Output, <D as Parser<Input>>::Output, <E as Parser<Input>>::Output, <F as Parser<Input>>::Output, <G as Parser<Input>>::Output, <H as Parser<Input>>::Output, <I as Parser<Input>>::Output, <J as Parser<Input>>::Output, <K as Parser<Input>>::Output, <L as Parser<Input>>::Output, <M as Parser<Input>>::Output, <N as Parser<Input>>::Output, <P as Parser<Input>>::Output, <Q as Parser<Input>>::Output, <R as Parser<Input>>::Output)

source§

type PartialState = PartialState17<SequenceState<<A as Parser<Input>>::Output, <A as Parser<Input>>::PartialState>, SequenceState<<B as Parser<Input>>::Output, <B as Parser<Input>>::PartialState>, SequenceState<<C as Parser<Input>>::Output, <C as Parser<Input>>::PartialState>, SequenceState<<D as Parser<Input>>::Output, <D as Parser<Input>>::PartialState>, SequenceState<<E as Parser<Input>>::Output, <E as Parser<Input>>::PartialState>, SequenceState<<F as Parser<Input>>::Output, <F as Parser<Input>>::PartialState>, SequenceState<<G as Parser<Input>>::Output, <G as Parser<Input>>::PartialState>, SequenceState<<H as Parser<Input>>::Output, <H as Parser<Input>>::PartialState>, SequenceState<<I as Parser<Input>>::Output, <I as Parser<Input>>::PartialState>, SequenceState<<J as Parser<Input>>::Output, <J as Parser<Input>>::PartialState>, SequenceState<<K as Parser<Input>>::Output, <K as Parser<Input>>::PartialState>, SequenceState<<L as Parser<Input>>::Output, <L as Parser<Input>>::PartialState>, SequenceState<<M as Parser<Input>>::Output, <M as Parser<Input>>::PartialState>, SequenceState<<N as Parser<Input>>::Output, <N as Parser<Input>>::PartialState>, SequenceState<<P as Parser<Input>>::Output, <P as Parser<Input>>::PartialState>, SequenceState<<Q as Parser<Input>>::Output, <Q as Parser<Input>>::PartialState>, SequenceState<<R as Parser<Input>>::Output, <R as Parser<Input>>::PartialState>>

source§

fn add_error(&mut self, errors: &mut Tracked<<Input as StreamOnce>::Error>)

source§

impl<Input, A, B, C, D, E, F, G, H, I, J, K, L, M, N, P, Q, R, S> Parser<Input> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, P, Q, R, S)
where Input: Stream, A: Parser<Input>, B: Parser<Input>, C: Parser<Input>, D: Parser<Input>, E: Parser<Input>, F: Parser<Input>, G: Parser<Input>, H: Parser<Input>, I: Parser<Input>, J: Parser<Input>, K: Parser<Input>, L: Parser<Input>, M: Parser<Input>, N: Parser<Input>, P: Parser<Input>, Q: Parser<Input>, R: Parser<Input>, S: Parser<Input>,

source§

type Output = (<A as Parser<Input>>::Output, <B as Parser<Input>>::Output, <C as Parser<Input>>::Output, <D as Parser<Input>>::Output, <E as Parser<Input>>::Output, <F as Parser<Input>>::Output, <G as Parser<Input>>::Output, <H as Parser<Input>>::Output, <I as Parser<Input>>::Output, <J as Parser<Input>>::Output, <K as Parser<Input>>::Output, <L as Parser<Input>>::Output, <M as Parser<Input>>::Output, <N as Parser<Input>>::Output, <P as Parser<Input>>::Output, <Q as Parser<Input>>::Output, <R as Parser<Input>>::Output, <S as Parser<Input>>::Output)

source§

type PartialState = PartialState18<SequenceState<<A as Parser<Input>>::Output, <A as Parser<Input>>::PartialState>, SequenceState<<B as Parser<Input>>::Output, <B as Parser<Input>>::PartialState>, SequenceState<<C as Parser<Input>>::Output, <C as Parser<Input>>::PartialState>, SequenceState<<D as Parser<Input>>::Output, <D as Parser<Input>>::PartialState>, SequenceState<<E as Parser<Input>>::Output, <E as Parser<Input>>::PartialState>, SequenceState<<F as Parser<Input>>::Output, <F as Parser<Input>>::PartialState>, SequenceState<<G as Parser<Input>>::Output, <G as Parser<Input>>::PartialState>, SequenceState<<H as Parser<Input>>::Output, <H as Parser<Input>>::PartialState>, SequenceState<<I as Parser<Input>>::Output, <I as Parser<Input>>::PartialState>, SequenceState<<J as Parser<Input>>::Output, <J as Parser<Input>>::PartialState>, SequenceState<<K as Parser<Input>>::Output, <K as Parser<Input>>::PartialState>, SequenceState<<L as Parser<Input>>::Output, <L as Parser<Input>>::PartialState>, SequenceState<<M as Parser<Input>>::Output, <M as Parser<Input>>::PartialState>, SequenceState<<N as Parser<Input>>::Output, <N as Parser<Input>>::PartialState>, SequenceState<<P as Parser<Input>>::Output, <P as Parser<Input>>::PartialState>, SequenceState<<Q as Parser<Input>>::Output, <Q as Parser<Input>>::PartialState>, SequenceState<<R as Parser<Input>>::Output, <R as Parser<Input>>::PartialState>, SequenceState<<S as Parser<Input>>::Output, <S as Parser<Input>>::PartialState>>

source§

fn add_error(&mut self, errors: &mut Tracked<<Input as StreamOnce>::Error>)

source§

impl<Input, A, B, C, D, E, F, G, H, I, J, K, L, M, N, P, Q, R, S, T> Parser<Input> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, P, Q, R, S, T)
where Input: Stream, A: Parser<Input>, B: Parser<Input>, C: Parser<Input>, D: Parser<Input>, E: Parser<Input>, F: Parser<Input>, G: Parser<Input>, H: Parser<Input>, I: Parser<Input>, J: Parser<Input>, K: Parser<Input>, L: Parser<Input>, M: Parser<Input>, N: Parser<Input>, P: Parser<Input>, Q: Parser<Input>, R: Parser<Input>, S: Parser<Input>, T: Parser<Input>,

source§

type Output = (<A as Parser<Input>>::Output, <B as Parser<Input>>::Output, <C as Parser<Input>>::Output, <D as Parser<Input>>::Output, <E as Parser<Input>>::Output, <F as Parser<Input>>::Output, <G as Parser<Input>>::Output, <H as Parser<Input>>::Output, <I as Parser<Input>>::Output, <J as Parser<Input>>::Output, <K as Parser<Input>>::Output, <L as Parser<Input>>::Output, <M as Parser<Input>>::Output, <N as Parser<Input>>::Output, <P as Parser<Input>>::Output, <Q as Parser<Input>>::Output, <R as Parser<Input>>::Output, <S as Parser<Input>>::Output, <T as Parser<Input>>::Output)

source§

type PartialState = PartialState19<SequenceState<<A as Parser<Input>>::Output, <A as Parser<Input>>::PartialState>, SequenceState<<B as Parser<Input>>::Output, <B as Parser<Input>>::PartialState>, SequenceState<<C as Parser<Input>>::Output, <C as Parser<Input>>::PartialState>, SequenceState<<D as Parser<Input>>::Output, <D as Parser<Input>>::PartialState>, SequenceState<<E as Parser<Input>>::Output, <E as Parser<Input>>::PartialState>, SequenceState<<F as Parser<Input>>::Output, <F as Parser<Input>>::PartialState>, SequenceState<<G as Parser<Input>>::Output, <G as Parser<Input>>::PartialState>, SequenceState<<H as Parser<Input>>::Output, <H as Parser<Input>>::PartialState>, SequenceState<<I as Parser<Input>>::Output, <I as Parser<Input>>::PartialState>, SequenceState<<J as Parser<Input>>::Output, <J as Parser<Input>>::PartialState>, SequenceState<<K as Parser<Input>>::Output, <K as Parser<Input>>::PartialState>, SequenceState<<L as Parser<Input>>::Output, <L as Parser<Input>>::PartialState>, SequenceState<<M as Parser<Input>>::Output, <M as Parser<Input>>::PartialState>, SequenceState<<N as Parser<Input>>::Output, <N as Parser<Input>>::PartialState>, SequenceState<<P as Parser<Input>>::Output, <P as Parser<Input>>::PartialState>, SequenceState<<Q as Parser<Input>>::Output, <Q as Parser<Input>>::PartialState>, SequenceState<<R as Parser<Input>>::Output, <R as Parser<Input>>::PartialState>, SequenceState<<S as Parser<Input>>::Output, <S as Parser<Input>>::PartialState>, SequenceState<<T as Parser<Input>>::Output, <T as Parser<Input>>::PartialState>>

source§

fn add_error(&mut self, errors: &mut Tracked<<Input as StreamOnce>::Error>)

source§

impl<Input, A, B, C, D, E, F, G, H, I, J, K, L, M, N, P, Q, R, S, T, U> Parser<Input> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, P, Q, R, S, T, U)
where Input: Stream, A: Parser<Input>, B: Parser<Input>, C: Parser<Input>, D: Parser<Input>, E: Parser<Input>, F: Parser<Input>, G: Parser<Input>, H: Parser<Input>, I: Parser<Input>, J: Parser<Input>, K: Parser<Input>, L: Parser<Input>, M: Parser<Input>, N: Parser<Input>, P: Parser<Input>, Q: Parser<Input>, R: Parser<Input>, S: Parser<Input>, T: Parser<Input>, U: Parser<Input>,

source§

type Output = (<A as Parser<Input>>::Output, <B as Parser<Input>>::Output, <C as Parser<Input>>::Output, <D as Parser<Input>>::Output, <E as Parser<Input>>::Output, <F as Parser<Input>>::Output, <G as Parser<Input>>::Output, <H as Parser<Input>>::Output, <I as Parser<Input>>::Output, <J as Parser<Input>>::Output, <K as Parser<Input>>::Output, <L as Parser<Input>>::Output, <M as Parser<Input>>::Output, <N as Parser<Input>>::Output, <P as Parser<Input>>::Output, <Q as Parser<Input>>::Output, <R as Parser<Input>>::Output, <S as Parser<Input>>::Output, <T as Parser<Input>>::Output, <U as Parser<Input>>::Output)

source§

type PartialState = PartialState20<SequenceState<<A as Parser<Input>>::Output, <A as Parser<Input>>::PartialState>, SequenceState<<B as Parser<Input>>::Output, <B as Parser<Input>>::PartialState>, SequenceState<<C as Parser<Input>>::Output, <C as Parser<Input>>::PartialState>, SequenceState<<D as Parser<Input>>::Output, <D as Parser<Input>>::PartialState>, SequenceState<<E as Parser<Input>>::Output, <E as Parser<Input>>::PartialState>, SequenceState<<F as Parser<Input>>::Output, <F as Parser<Input>>::PartialState>, SequenceState<<G as Parser<Input>>::Output, <G as Parser<Input>>::PartialState>, SequenceState<<H as Parser<Input>>::Output, <H as Parser<Input>>::PartialState>, SequenceState<<I as Parser<Input>>::Output, <I as Parser<Input>>::PartialState>, SequenceState<<J as Parser<Input>>::Output, <J as Parser<Input>>::PartialState>, SequenceState<<K as Parser<Input>>::Output, <K as Parser<Input>>::PartialState>, SequenceState<<L as Parser<Input>>::Output, <L as Parser<Input>>::PartialState>, SequenceState<<M as Parser<Input>>::Output, <M as Parser<Input>>::PartialState>, SequenceState<<N as Parser<Input>>::Output, <N as Parser<Input>>::PartialState>, SequenceState<<P as Parser<Input>>::Output, <P as Parser<Input>>::PartialState>, SequenceState<<Q as Parser<Input>>::Output, <Q as Parser<Input>>::PartialState>, SequenceState<<R as Parser<Input>>::Output, <R as Parser<Input>>::PartialState>, SequenceState<<S as Parser<Input>>::Output, <S as Parser<Input>>::PartialState>, SequenceState<<T as Parser<Input>>::Output, <T as Parser<Input>>::PartialState>, SequenceState<<U as Parser<Input>>::Output, <U as Parser<Input>>::PartialState>>

source§

fn add_error(&mut self, errors: &mut Tracked<<Input as StreamOnce>::Error>)

source§

impl<Input, O> Parser<Input> for fn(_: &mut Input) -> StdParseResult<O, Input>
where Input: Stream,

source§

type Output = O

source§

type PartialState = ()

source§

fn parse_lazy(&mut self, input: &mut Input) -> ParseResult<O, Input::Error>

source§

impl<P, Input> Parser<Input> for Box<P>
where P: ?Sized + Parser<Input>, Input: Stream,

source§

type Output = <P as Parser<Input>>::Output

source§

type PartialState = <P as Parser<Input>>::PartialState

source§

fn add_error(&mut self, error: &mut Tracked<<Input as StreamOnce>::Error>)

Implementors§

source§

impl<'s, 'a, P, Q, I, J, F> Parser<I> for Iterate<F, J, P>
where P: FnMut(&J::Item, &mut I) -> Q, Q: Parser<I>, I: Stream, J: IntoIterator + Clone, F: Extend<Q::Output> + Default,

source§

impl<F, Input, P> Parser<Input> for Count<F, Input, P>
where <Input as StreamOnce>::Error: ParseError<<Input as StreamOnce>::Token, <Input as StreamOnce>::Range, <Input as StreamOnce>::Position>, Input: Stream + Stream, P: Parser<Input>, F: Extend<P::Output> + Default,

source§

impl<F, Input, P> Parser<Input> for Many1<F, P>
where Input: Stream, F: Extend<P::Output> + Default, P: Parser<Input>,

source§

type Output = F

source§

type PartialState = (bool, bool, F, <P as Parser<Input>>::PartialState)

source§

impl<F, Input, P> Parser<Input> for Many<F, P>
where Input: Stream, P: Parser<Input>, F: Extend<P::Output> + Default,

source§

type Output = F

source§

type PartialState = (F, <P as Parser<Input>>::PartialState)

source§

impl<F, Input, P> Parser<Input> for TakeUntil<F, P>
where Input: Stream, F: Extend<<Input as StreamOnce>::Token> + Default, P: Parser<Input>,

source§

type Output = F

source§

type PartialState = (F, <P as Parser<Input>>::PartialState)

source§

impl<F, Input, P, E> Parser<Input> for RepeatUntil<F, P, E>
where Input: Stream, F: Extend<P::Output> + Default, P: Parser<Input>, E: Parser<Input>,

source§

type Output = F

source§

type PartialState = (F, bool, <P as Parser<Input>>::PartialState, <E as Parser<Input>>::PartialState)

source§

impl<F, Input, P, S> Parser<Input> for SepBy1<F, P, S>
where Input: Stream, F: Extend<P::Output> + Default, P: Parser<Input>, S: Parser<Input>,

source§

type Output = F

source§

type PartialState = (Option<Commit<()>>, F, <With<S, P> as Parser<Input>>::PartialState)

source§

impl<F, Input, P, S> Parser<Input> for SepBy<F, P, S>
where Input: Stream, F: Extend<P::Output> + Default, P: Parser<Input>, S: Parser<Input>,

source§

type Output = F

source§

type PartialState = <Or<SepBy1<F, P, S>, FnParser<Input, fn(_: &mut Input) -> Result<(F, Commit<()>), Commit<Tracked<<Input as StreamOnce>::Error>>>>> as Parser<Input>>::PartialState

source§

impl<F, Input, P, S> Parser<Input> for SepEndBy1<F, P, S>
where Input: Stream, F: Extend<P::Output> + Default, P: Parser<Input>, S: Parser<Input>,

source§

impl<F, Input, P, S> Parser<Input> for SepEndBy<F, P, S>
where Input: Stream, F: Extend<P::Output> + Default, P: Parser<Input>, S: Parser<Input>,

source§

type Output = F

source§

type PartialState = <Or<SepEndBy1<F, P, S>, FnParser<Input, fn(_: &mut Input) -> Result<(F, Commit<()>), Commit<Tracked<<Input as StreamOnce>::Error>>>>> as Parser<Input>>::PartialState

source§

impl<Input> Parser<Input> for TakeUntilByte2<Input>
where <Input as StreamOnce>::Error: ParseError<<Input as StreamOnce>::Token, <Input as StreamOnce>::Range, <Input as StreamOnce>::Position>, Input: Stream + RangeStream, Input::Range: AsRef<[u8]> + Range,

source§

impl<Input> Parser<Input> for TakeUntilByte3<Input>
where <Input as StreamOnce>::Error: ParseError<<Input as StreamOnce>::Token, <Input as StreamOnce>::Range, <Input as StreamOnce>::Position>, Input: Stream + RangeStream, Input::Range: AsRef<[u8]> + Range,

source§

impl<Input> Parser<Input> for TakeUntilByte<Input>
where <Input as StreamOnce>::Error: ParseError<<Input as StreamOnce>::Token, <Input as StreamOnce>::Range, <Input as StreamOnce>::Position>, Input: Stream + RangeStream, Input::Range: AsRef<[u8]> + Range,

source§

impl<Input> Parser<Input> for Digit<Input>
where <Input as StreamOnce>::Error: ParseError<<Input as StreamOnce>::Token, <Input as StreamOnce>::Range, <Input as StreamOnce>::Position>, Input: Stream + Stream<Token = char>,

source§

impl<Input> Parser<Input> for Range<Input>
where Input: RangeStream, Input::Range: PartialEq + Range,

source§

impl<Input> Parser<Input> for Take<Input>
where Input: RangeStream,

source§

impl<Input> Parser<Input> for TakeUntilRange<Input>
where Input: RangeStream, Input::Range: PartialEq + Range,

source§

impl<Input> Parser<Input> for Any<Input>
where Input: Stream,

source§

impl<Input> Parser<Input> for Eof<Input>
where Input: Stream,

source§

impl<Input> Parser<Input> for Position<Input>
where Input: Stream,

source§

impl<Input> Parser<Input> for Token<Input>
where Input: Stream, Input::Token: PartialEq + Clone,

source§

impl<Input, A, B, P, F> Parser<Input> for FlatMap<P, F>
where Input: Stream, P: Parser<Input, Output = A>, F: FnMut(A) -> Result<B, Input::Error>,

source§

impl<Input, A, B, P, F> Parser<Input> for Map<P, F>
where Input: Stream, P: Parser<Input, Output = A>, F: FnMut(A) -> B,

source§

impl<Input, A, B, P, F> Parser<Input> for MapInput<P, F>
where Input: Stream, P: Parser<Input, Output = A>, F: FnMut(A, &mut Input) -> B,

source§

impl<Input, C, E, T> Parser<Input> for Tokens<C, E, T, Input>
where C: FnMut(T::Item, Input::Token) -> bool, E: for<'s> ErrorInfo<'s, Input::Token, Input::Range>, T: Clone + IntoIterator, Input: Stream,

source§

impl<Input, C, T> Parser<Input> for TokensCmp<C, T, Input>
where C: FnMut(T::Item, Input::Token) -> bool, T: Clone + IntoIterator, Input: Stream,

source§

impl<Input, E, O> Parser<Input> for EnvParser<E, Input, O>
where E: Clone, Input: Stream,

source§

impl<Input, F> Parser<Input> for TakeWhile1<Input, F>
where Input: RangeStream, Input::Range: Range, F: FnMut(Input::Token) -> bool,

source§

impl<Input, F> Parser<Input> for TakeWhile<Input, F>
where Input: RangeStream, Input::Range: Range, F: FnMut(Input::Token) -> bool,

source§

impl<Input, F, O, S> Parser<Input> for Opaque<F, Input, O, S>
where Input: Stream, S: Default, F: FnMut(&mut dyn FnMut(&mut dyn Parser<Input, Output = O, PartialState = S>)),

source§

impl<Input, F, R> Parser<Input> for TakeFn<F, Input>
where F: FnMut(Input::Range) -> R, R: Into<TakeRange>, Input: RangeStream, Input::Range: Range,

source§

impl<Input, F, R> Parser<Input> for Produce<Input, F>
where Input: Stream, F: FnMut() -> R,

source§

impl<Input, InputInner, P, C> Parser<Input> for InputConverter<InputInner, P, C>
where Input: Stream, InputInner: Stream, P: Parser<InputInner>, for<'c> C: Converter<'c, Input, InputInner = InputInner>,

source§

type Output = <P as Parser<InputInner>>::Output

source§

type PartialState = <P as Parser<InputInner>>::PartialState

source§

impl<Input, L, R> Parser<Input> for Either<L, R>
where Input: Stream, L: Parser<Input>, R: Parser<Input, Output = L::Output>,

source§

type Output = <L as Parser<Input>>::Output

source§

type PartialState = Option<Either<<L as Parser<Input>>::PartialState, <R as Parser<Input>>::PartialState>>

source§

impl<Input, L, R, P> Parser<Input> for Between<Input, L, R, P>
where <Input as StreamOnce>::Error: ParseError<<Input as StreamOnce>::Token, <Input as StreamOnce>::Range, <Input as StreamOnce>::Position>, Input: Stream + Stream, L: Parser<Input>, R: Parser<Input>, P: Parser<Input>,

source§

type Output = <P as Parser<Input>>::Output

source§

type PartialState = <Map<(L, P, R), fn(_: (<L as Parser<Input>>::Output, <P as Parser<Input>>::Output, <R as Parser<Input>>::Output)) -> <P as Parser<Input>>::Output> as Parser<Input>>::PartialState

source§

impl<Input, O, F> Parser<Input> for FnParser<Input, F>
where Input: Stream, F: FnMut(&mut Input) -> StdParseResult<O, Input>,

source§

impl<Input, O, P1, P2> Parser<Input> for Or<P1, P2>
where Input: Stream, P1: Parser<Input, Output = O>, P2: Parser<Input, Output = O>,

source§

impl<Input, O, P> Parser<Input> for FromStr<Input, O, P>
where <Input as StreamOnce>::Error: ParseError<<Input as StreamOnce>::Token, <Input as StreamOnce>::Range, <Input as StreamOnce>::Position>, Input: Stream, P: Parser<Input>, P::Output: StrLike, O: FromStr, O::Err: Display,

source§

impl<Input, O, P> Parser<Input> for LookAhead<P>
where Input: Stream, P: Parser<Input, Output = O>,

source§

impl<Input, O, P> Parser<Input> for NotFollowedBy<P>
where Input: Stream, P: Parser<Input, Output = O>,

source§

impl<Input, O, P> Parser<Input> for Try<P>
where Input: Stream, P: Parser<Input, Output = O>,

source§

impl<Input, O, P, R> Parser<Input> for Factory<P, R>
where Input: Stream, P: FnMut(&mut Input) -> R, R: Parser<Input, Output = O>,

source§

impl<Input, O, P, R> Parser<Input> for Lazy<P>
where Input: Stream, P: FnMut() -> R, R: Parser<Input, Output = O>,

source§

impl<Input, P1, P2> Parser<Input> for Skip<P1, P2>
where Input: Stream, P1: Parser<Input>, P2: Parser<Input>,

source§

type Output = <P1 as Parser<Input>>::Output

source§

type PartialState = <(P1, Ignore<P2>) as Parser<Input>>::PartialState

source§

impl<Input, P1, P2> Parser<Input> for With<P1, P2>
where Input: Stream, P1: Parser<Input>, P2: Parser<Input>,

source§

type Output = <P2 as Parser<Input>>::Output

source§

type PartialState = <(Ignore<P1>, P2) as Parser<Input>>::PartialState

source§

impl<Input, P> Parser<Input> for Choice<P>
where Input: Stream, P: ChoiceParser<Input>,

source§

impl<Input, P> Parser<Input> for Optional<P>
where Input: Stream, P: Parser<Input>,

source§

type Output = Option<<P as Parser<Input>>::Output>

source§

type PartialState = <P as Parser<Input>>::PartialState

source§

impl<Input, P> Parser<Input> for AnyPartialStateParser<P>
where Input: Stream, P: Parser<Input>, P::PartialState: 'static,

source§

impl<Input, P> Parser<Input> for AnySendPartialStateParser<P>
where Input: Stream, P: Parser<Input>, P::PartialState: Send + 'static,

source§

impl<Input, P> Parser<Input> for AnySendSyncPartialStateParser<P>
where Input: Stream, P: Parser<Input>, P::PartialState: Send + Sync + 'static,

source§

impl<Input, P> Parser<Input> for Ignore<P>
where Input: Stream, P: Parser<Input>,

source§

impl<Input, P> Parser<Input> for NoPartial<P>
where Input: Stream, P: Parser<Input>,

source§

type Output = <P as Parser<Input>>::Output

source§

type PartialState = ()

source§

impl<Input, P> Parser<Input> for Silent<P>
where P: Parser<Input>, Input: Stream,

source§

type Output = <P as Parser<Input>>::Output

source§

type PartialState = <P as Parser<Input>>::PartialState

source§

impl<Input, P> Parser<Input> for combine::parser::range::Recognize<Input, P>
where <Input as StreamOnce>::Error: ParseError<<Input as StreamOnce>::Token, <Input as StreamOnce>::Range, <Input as StreamOnce>::Position>, Input: Stream + RangeStream, P: Parser<Input>, <Input as StreamOnce>::Range: Range,

source§

impl<Input, P> Parser<Input> for RecognizeWithValue<P>
where P: Parser<Input>, Input: RangeStream, <Input as StreamOnce>::Range: Range,

source§

type Output = (<Input as StreamOnce>::Range, <P as Parser<Input>>::Output)

source§

type PartialState = (usize, <P as Parser<Input>>::PartialState)

source§

impl<Input, P> Parser<Input> for SkipCount<Input, P>
where <Input as StreamOnce>::Error: ParseError<<Input as StreamOnce>::Token, <Input as StreamOnce>::Range, <Input as StreamOnce>::Position>, Input: Stream, P: Parser<Input>,

source§

type Output = ()

source§

type PartialState = <With<Count<Sink, Input, P>, Value<Input, ()>> as Parser<Input>>::PartialState

source§

impl<Input, P> Parser<Input> for SkipCountMinMax<Input, P>
where <Input as StreamOnce>::Error: ParseError<<Input as StreamOnce>::Token, <Input as StreamOnce>::Range, <Input as StreamOnce>::Position>, Input: Stream, P: Parser<Input>,

source§

type Output = ()

source§

type PartialState = <With<CountMinMax<Sink, P>, Value<Input, ()>> as Parser<Input>>::PartialState

source§

impl<Input, P> Parser<Input> for SkipMany1<Input, P>
where <Input as StreamOnce>::Error: ParseError<<Input as StreamOnce>::Token, <Input as StreamOnce>::Range, <Input as StreamOnce>::Position>, Input: Stream, P: Parser<Input>,

source§

impl<Input, P> Parser<Input> for SkipMany<Input, P>
where <Input as StreamOnce>::Error: ParseError<<Input as StreamOnce>::Token, <Input as StreamOnce>::Range, <Input as StreamOnce>::Position>, Input: Stream, P: Parser<Input>,

source§

impl<Input, P> Parser<Input> for SkipUntil<Input, P>
where <Input as StreamOnce>::Error: ParseError<<Input as StreamOnce>::Token, <Input as StreamOnce>::Range, <Input as StreamOnce>::Position>, Input: Stream, P: Parser<Input>,

source§

type Output = ()

source§

type PartialState = <With<TakeUntil<Sink, P>, Value<Input, ()>> as Parser<Input>>::PartialState

source§

impl<Input, P> Parser<Input> for Satisfy<Input, P>
where Input: Stream, P: FnMut(Input::Token) -> bool,

source§

impl<Input, P, E> Parser<Input> for SkipRepeatUntil<Input, P, E>
where <Input as StreamOnce>::Error: ParseError<<Input as StreamOnce>::Token, <Input as StreamOnce>::Range, <Input as StreamOnce>::Position>, Input: Stream, P: Parser<Input>, E: Parser<Input>,

source§

type Output = ()

source§

type PartialState = <With<RepeatUntil<Sink, P, E>, Value<Input, ()>> as Parser<Input>>::PartialState

source§

impl<Input, P, F> Parser<Input> for combine::parser::combinator::Recognize<F, P>
where Input: Stream, P: Parser<Input>, F: Default + Extend<<Input as StreamOnce>::Token>,

source§

type Output = F

source§

type PartialState = (F, <P as Parser<Input>>::PartialState)

source§

impl<Input, P, F> Parser<Input> for CountMinMax<F, P>
where Input: Stream, P: Parser<Input>, F: Extend<P::Output> + Default,

source§

type Output = F

source§

type PartialState = (usize, F, <P as Parser<Input>>::PartialState)

source§

impl<Input, P, F, O, E> Parser<Input> for AndThen<P, F>
where Input: Stream, P: Parser<Input>, F: FnMut(P::Output) -> Result<O, E>, E: Into<<Input::Error as ParseError<Input::Token, Input::Range, Input::Position>>::StreamError>,

source§

impl<Input, P, N, F> Parser<Input> for Then<P, F>
where Input: Stream, F: FnMut(P::Output) -> N, P: Parser<Input>, N: Parser<Input>,

source§

type Output = <N as Parser<Input>>::Output

source§

type PartialState = (<P as Parser<Input>>::PartialState, Option<(bool, N)>, <N as Parser<Input>>::PartialState)

source§

impl<Input, P, N, F> Parser<Input> for ThenPartial<P, F>
where Input: Stream, F: FnMut(&mut P::Output) -> N, P: Parser<Input>, N: Parser<Input>,

source§

type Output = <N as Parser<Input>>::Output

source§

type PartialState = (<P as Parser<Input>>::PartialState, Option<(bool, <P as Parser<Input>>::Output)>, <N as Parser<Input>>::PartialState)

source§

impl<Input, P, N, F> Parser<Input> for ThenRef<P, F>
where Input: Stream, F: FnMut(&P::Output) -> N, P: Parser<Input>, N: Parser<Input>,

source§

type Output = (<P as Parser<Input>>::Output, <N as Parser<Input>>::Output)

source§

type PartialState = (<P as Parser<Input>>::PartialState, Option<(bool, <P as Parser<Input>>::Output, N)>, <N as Parser<Input>>::PartialState)

source§

impl<Input, P, Op> Parser<Input> for Chainl1<P, Op>
where Input: Stream, P: Parser<Input>, Op: Parser<Input>, Op::Output: FnOnce(P::Output, P::Output) -> P::Output,

source§

type Output = <P as Parser<Input>>::Output

source§

type PartialState = (Option<(<P as Parser<Input>>::Output, Commit<()>)>, <(Op, P) as Parser<Input>>::PartialState)

source§

impl<Input, P, Op> Parser<Input> for Chainr1<P, Op>
where Input: Stream, P: Parser<Input>, Op: Parser<Input>, Op::Output: FnOnce(P::Output, P::Output) -> P::Output,

source§

type Output = <P as Parser<Input>>::Output

source§

type PartialState = ()

source§

impl<Input, P, Q> Parser<Input> for Spanned<P>
where P: Parser<Input>, Input: Stream<Position = Span<Q>>, Q: Ord + Clone,

source§

type Output = <P as Parser<Input>>::Output

source§

type PartialState = <P as Parser<Input>>::PartialState

source§

impl<Input, P, Q> Parser<Input> for Escaped<P, Q, Input::Token>
where Input: Stream, P: Parser<Input>, <Input as StreamOnce>::Token: PartialEq, Q: Parser<Input>,

source§

impl<Input, P, R> Parser<Input> for SatisfyMap<Input, P>
where Input: Stream, P: FnMut(Input::Token) -> Option<R>,

source§

impl<Input, P, S> Parser<Input> for Expected<P, S>
where P: Parser<Input>, Input: Stream, S: for<'s> ErrorInfo<'s, Input::Token, Input::Range>,

source§

type Output = <P as Parser<Input>>::Output

source§

type PartialState = <P as Parser<Input>>::PartialState

source§

impl<Input, P, S> Parser<Input> for Message<P, S>
where Input: Stream, P: Parser<Input>, S: for<'s> ErrorInfo<'s, Input::Token, Input::Range>,

source§

type Output = <P as Parser<Input>>::Output

source§

type PartialState = <P as Parser<Input>>::PartialState

source§

impl<Input, T> Parser<Input> for NoneOf<T, Input>
where T: Clone + IntoIterator<Item = Input::Token>, Input: Stream, Input::Token: PartialEq,

source§

impl<Input, T> Parser<Input> for OneOf<T, Input>
where T: Clone + IntoIterator<Item = Input::Token>, Input: Stream, Input::Token: PartialEq,

source§

impl<Input, T> Parser<Input> for Value<Input, T>
where Input: Stream, T: Clone,

source§

impl<Input, T, E> Parser<Input> for Unexpected<Input, T, E>
where Input: Stream, E: for<'s> ErrorInfo<'s, Input::Token, Input::Range>,