Enum cucumber_expressions::parse::Error
source · [−]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)
Parsing requires more data.
Trait Implementations
sourceimpl<Input> Error for Error<Input> where
Error<Input>: Debug + Display,
Input: Display,
impl<Input> Error for Error<Input> where
Error<Input>: Debug + Display,
Input: Display,
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl<Input: Display> ParseError<Input> for Error<Input>
impl<Input: Display> ParseError<Input> for Error<Input>
impl<Input: Copy> Copy for Error<Input> where
Input: Display,
impl<Input: Eq> Eq for Error<Input> where
Input: Display,
impl<Input> StructuralEq for Error<Input> where
Input: Display,
impl<Input> StructuralPartialEq for Error<Input> where
Input: Display,
Auto Trait Implementations
impl<Input> RefUnwindSafe for Error<Input> where
Input: RefUnwindSafe,
impl<Input> Send for Error<Input> where
Input: Send,
impl<Input> Sync for Error<Input> where
Input: Sync,
impl<Input> Unpin for Error<Input> where
Input: Unpin,
impl<Input> UnwindSafe for Error<Input> where
Input: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more