Enum cucumber_expressions::SingleExpression [−][src]
pub enum SingleExpression<Input> {
Alternation(Alternation<Input>),
Optional(Optional<Input>),
Parameter(Parameter<Input>),
Text(Input),
Whitespaces(Input),
}
Expand description
single-expression
defined in the grammar spec, representing a single
entry of an Expression
.
See parse::single_expression()
for the detailed grammar and examples.
Variants
Alternation(Alternation<Input>)
Tuple Fields
0: Alternation<Input>
alternation
expression.
Optional(Optional<Input>)
Tuple Fields
0: Optional<Input>
optional
expression.
Parameter(Parameter<Input>)
Tuple Fields
0: Parameter<Input>
parameter
expression.
Text(Input)
text-without-whitespace+
expression.
Whitespaces(Input)
whitespace+
expression.
Trait Implementations
impl<Input> IntoRegexCharIter<Input> for SingleExpression<Input> where
Input: Clone + Display + InputIter,
<Input as InputIter>::Item: AsChar,
impl<Input> IntoRegexCharIter<Input> for SingleExpression<Input> where
Input: Clone + Display + InputIter,
<Input as InputIter>::Item: AsChar,
type Iter = Either<<Alternation<Input> as IntoRegexCharIter<Input>>::Iter, Either<<Optional<Input> as IntoRegexCharIter<Input>>::Iter, Either<<Parameter<Input> as IntoRegexCharIter<Input>>::Iter, Map<EscapeForRegex<Map<<Input as InputIter>::IterElem, fn(_: <Input as InputIter>::Item) -> char>>, fn(_: char) -> Result<char, UnknownParameterError<Input>>>>>>
type Iter = Either<<Alternation<Input> as IntoRegexCharIter<Input>>::Iter, Either<<Optional<Input> as IntoRegexCharIter<Input>>::Iter, Either<<Parameter<Input> as IntoRegexCharIter<Input>>::Iter, Map<EscapeForRegex<Map<<Input as InputIter>::IterElem, fn(_: <Input as InputIter>::Item) -> char>>, fn(_: char) -> Result<char, UnknownParameterError<Input>>>>>>
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 SingleExpression<Input> where
Input: RefUnwindSafe,
impl<Input> Send for SingleExpression<Input> where
Input: Send,
impl<Input> Sync for SingleExpression<Input> where
Input: Sync,
impl<Input> Unpin for SingleExpression<Input> where
Input: Unpin,
impl<Input> UnwindSafe for SingleExpression<Input> where
Input: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more