Enum cucumber_expressions::parse::Error [−][src]
pub enum Error<Input> where
Input: Display, {
Show 15 variants
NestedParameter(Input),
OptionalInParameter(Input),
UnfinishedParameter(Input),
NestedOptional(Input),
ParameterInOptional(Input),
EmptyOptional(Input),
AlternationInOptional(Input),
UnfinishedOptional(Input),
EmptyAlternation(Input),
OnlyOptionalInAlternation(Input),
UnescapedReservedCharacter(Input),
EscapedNonReservedCharacter(Input),
EscapedEndOfLine(Input),
Other(Input, ErrorKind),
Needed(Needed),
}
Expand description
Possible parsing errors.
Variants
NestedParameter(Input)
Nested Parameter
s.
OptionalInParameter(Input)
UnfinishedParameter(Input)
Unfinished Parameter
.
NestedOptional(Input)
Nested Optional
.
ParameterInOptional(Input)
EmptyOptional(Input)
Empty Optional
.
AlternationInOptional(Input)
Alternation
inside an Optional
.
UnfinishedOptional(Input)
Unfinished Optional
.
EmptyAlternation(Input)
Empty Alternation
.
OnlyOptionalInAlternation(Input)
Only Optional
inside Alternation
.
UnescapedReservedCharacter(Input)
Unescaped RESERVED_CHARS
.
EscapedNonReservedCharacter(Input)
Escaped non-RESERVED_CHARS
.
EscapedEndOfLine(Input)
Escaped EOL.
Other(Input, ErrorKind)
Unknown error.
Needed(Needed)
Tuple Fields
0: Needed
Parsing requires more data.
Trait Implementations
Creates an error from the input position and an ErrorKind
Creates an error from an input position and an expected character
Auto Trait Implementations
impl<Input> RefUnwindSafe for Error<Input> where
Input: RefUnwindSafe,
impl<Input> UnwindSafe for Error<Input> where
Input: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more