Expand description
Error types and traits which define what kind of errors combine parsers may emit
Structs§
- Format
- Newtype which constructs an
Info::Format
throughErrorInfo
- Range
- Newtype which constructs an
Info::Range
throughErrorInfo
- Static
- Newtype which constructs an
Info::Static
throughErrorInfo
A plain&'static str
can also be used, this exists for consistency. - Token
- Newtype which constructs an
Info::Token
throughErrorInfo
- 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§
- Commit
- Enum used to indicate if a parser committed any items of the stream it was given as an input.
- Info
- Parse
Result - A
Result
type which has the committed status flattened into the result. Conversions to and fromstd::result::Result
can be done usingresult.into()
orFrom::from(result)
- String
Stream Error - Unexpected
Parse
Traits§
- Error
Info - Trait for types which can be used to construct error information.
- Parse
Error - Trait which defines a combine parse error.
- Parse
Error Into - Defines a conversion between two parse error types.
- Stream
Error StreamError
represents a single error returned from aStream
or aParser
.- Stream
Error Into - Defines a conversion between two stream error types.
Type Aliases§
- StdParse
Result - 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. - StdParse
Result2