Module abortable_parser::combinators[][src]

Contains combinators that can assemble other matchers or combinators into more complex grammars.

Functions

ascii_alpha

ascii_alpha parses a single ascii alphabet character from an InputIter of bytes.

ascii_alphanumeric

ascii_digit parses a single ascii alphabetic or digit character from an InputIter of bytes.

ascii_digit

ascii_digit parses a single ascii digit character from an InputIter of bytes.

ascii_ws

Matches and returns any ascii charactar whitespace byte.

complete

Turns Result::Incomplete into Result::Fail.

eoi

Matches the end of input for any InputIter. Returns () for any match.

must

Maps a Result::Fail to a Result::Abort.

must_complete

Turns Result::Fail or Result::Incomplete into Result::Abort.

not

Turns a Result to it's inverse.

optional

Maps a Result to be optional.

trap

Traps a Result::Abort and converts it into a Result::Fail.