Enum ron_reboot::utf8_parser::ErrorTree [−][src]
pub enum ErrorTree<I> {
Base {
location: I,
kind: BaseErrorKind,
},
Stack {
base: Box<Self>,
finalized: bool,
contexts: Vec<(I, StackContext)>,
},
Alt(Vec<Self>),
}Variants
A specific error event at a specific location. Often this will indicate that something like a tag or character was expected at that location.
Fields of Base
A stack indicates a chain of error contexts was provided. The stack
should be read “backwards”; that is, errors earlier in the Vec
occurred “sooner” (deeper in the call stack).
Fields of Stack
Alt(Vec<Self>)A series of parsers were tried at the same location (for instance, via
the alt2 combinator) and all of them failed.
Tuple Fields of Alt
0: Vec<Self>Implementations
Similar to append: Create a new error with some added context
Trait Implementations
Performs the conversion.