Enum cucumber_expressions::Alternative
source ·
[−]pub enum Alternative<Input> {
Optional(Optional<Input>),
Text(Input),
}Expand description
alternative defined in the grammar spec.
See parse::alternative() for the detailed grammar and examples.
Variants
Optional(Optional<Input>)
Tuple Fields
0: Optional<Input>optional expression.
Text(Input)
Text.
Trait Implementations
impl<Input> IntoRegexCharIter<Input> for Alternative<Input> where
Input: Display + InputIter,
<Input as InputIter>::Item: AsChar,
impl<Input> IntoRegexCharIter<Input> for Alternative<Input> where
Input: Display + InputIter,
<Input as InputIter>::Item: AsChar,
Type of an Iterator performing the expansion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl<Input> RefUnwindSafe for Alternative<Input> where
Input: RefUnwindSafe,
impl<Input> Send for Alternative<Input> where
Input: Send,
impl<Input> Sync for Alternative<Input> where
Input: Sync,
impl<Input> Unpin for Alternative<Input> where
Input: Unpin,
impl<Input> UnwindSafe for Alternative<Input> where
Input: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more