Module pcomb::str[][src]

Expand description

Static-dispatch based parser combinators.

Structs

Empty

Accept the empty string for any input. Empty is infallible and always returns Ok.

Fuse

The intermediate type for Parse::fuse, see method for documentation.

Match

Accept the input if the input matches the contained character.

Or

The intermediate type for Parse::or, see method for documentation.

Enums

ParseError

Denotes the failure to parse a given input

Traits

Parse

Attempt to parse a string into some output. If the string is accepted, Ok includes a slice of input and the parsed value in Output. Otherwise Err describes the error associated with why the input was rejected.