[][src]Module combine::error

Error types and traits which define what kind of errors combine parsers may emit

Structs

Format

Newtype which constructs an Info::Format through ErrorInfo

Range

Newtype which constructs an Info::Range through ErrorInfo

Static

Newtype which constructs an Info::Static through ErrorInfo A plain &'static str can also be used, this exists for consistency.

Token

Newtype which constructs an Info::Token through ErrorInfo

Tracked

Error wrapper which lets parsers track which parser in a sequence of sub-parsers has emitted the error. Tracked::from can be used to construct this and it should otherwise be ignored outside of combine.

Enums

Consumed

Enum used to indicate if a parser consumed any items of the stream it was given as an input.

Info
ParseResult

A Result type which has the consumed status flattened into the result. Conversions to and from std::result::Result can be done using result.into() or From::from(result)

StringStreamError
UnexpectedParse

Traits

ErrorInfo

Trait for types which can be used to construct error information.

ParseError

Trait which defines a combine parse error.

StreamError

StreamError represents a single error returned from a Stream or a Parser.

Type Definitions

StdParseResult

A type alias over the specific Result type used by parsers to indicate whether they were successful or not. O is the type that is output on success. Input is the specific stream type used in the parser.

StdParseResult2