Struct cucumber_expressions::expand::parameters::WithCustom [−][src]
pub struct WithCustom<Element, Parameters> {
pub element: Element,
pub parameters: Parameters,
}
Expand description
Parser of a Cucumber Expressions AST Element
with custom
Parameters
in mind.
Every Parameter
should be represented by a single Regex
capturing
group.
Fields
element: Element
Parsed element of a Cucumber Expressions AST.
parameters: Parameters
Custom Parameters
(in addition to default ones) to be used for
expanding the Element
into a Regex
.
Trait Implementations
impl<Input, Pars> IntoRegexCharIter<Input> for WithCustom<Expression<Input>, Pars> where
Input: Clone + Display + InputIter,
<Input as InputIter>::Item: AsChar,
Pars: Clone + Provider<Input>,
<Pars as Provider<Input>>::Value: InputIter,
impl<Input, Pars> IntoRegexCharIter<Input> for WithCustom<Expression<Input>, Pars> where
Input: Clone + Display + InputIter,
<Input as InputIter>::Item: AsChar,
Pars: Clone + Provider<Input>,
<Pars as Provider<Input>>::Value: InputIter,
type Iter = Chain<Chain<Once<Result<char, UnknownParameterError<Input>>>, FlatMap<Map<Zip<IntoIter<SingleExpression<Input>>, Repeat<Pars>>, fn(_: (SingleExpression<Input>, Pars)) -> WithCustom<SingleExpression<Input>, Pars>>, Either<<WithCustom<Parameter<Input>, Pars> as IntoRegexCharIter<Input>>::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>>>>>>>, fn(_: WithCustom<SingleExpression<Input>, Pars>) -> Either<<WithCustom<Parameter<Input>, Pars> as IntoRegexCharIter<Input>>::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>>>>>>>>>, Once<Result<char, UnknownParameterError<Input>>>>
type Iter = Chain<Chain<Once<Result<char, UnknownParameterError<Input>>>, FlatMap<Map<Zip<IntoIter<SingleExpression<Input>>, Repeat<Pars>>, fn(_: (SingleExpression<Input>, Pars)) -> WithCustom<SingleExpression<Input>, Pars>>, Either<<WithCustom<Parameter<Input>, Pars> as IntoRegexCharIter<Input>>::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>>>>>>>, fn(_: WithCustom<SingleExpression<Input>, Pars>) -> Either<<WithCustom<Parameter<Input>, Pars> as IntoRegexCharIter<Input>>::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>>>>>>>>>, Once<Result<char, UnknownParameterError<Input>>>>
Type of an Iterator
performing the expansion.
impl<Input, Pars> IntoRegexCharIter<Input> for WithCustom<SingleExpression<Input>, Pars> where
Input: Clone + Display + InputIter,
<Input as InputIter>::Item: AsChar,
Pars: Provider<Input>,
<Pars as Provider<Input>>::Value: InputIter,
impl<Input, Pars> IntoRegexCharIter<Input> for WithCustom<SingleExpression<Input>, Pars> where
Input: Clone + Display + InputIter,
<Input as InputIter>::Item: AsChar,
Pars: Provider<Input>,
<Pars as Provider<Input>>::Value: InputIter,
type Iter = Either<<WithCustom<Parameter<Input>, Pars> as IntoRegexCharIter<Input>>::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<<WithCustom<Parameter<Input>, Pars> as IntoRegexCharIter<Input>>::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.
type Iter = Either<Chain<Chain<Once<Result<char, UnknownParameterError<Input>>>, Map<<<P as Provider<Input>>::Value as InputIter>::IterElem, fn(_: <<P as Provider<Input>>::Value as InputIter>::Item) -> Result<char, UnknownParameterError<Input>>>>, Once<Result<char, UnknownParameterError<Input>>>>, Either<Map<Chars<'static>, fn(_: char) -> Result<char, UnknownParameterError<Input>>>, Once<Result<char, UnknownParameterError<Input>>>>>
type Iter = Either<Chain<Chain<Once<Result<char, UnknownParameterError<Input>>>, Map<<<P as Provider<Input>>::Value as InputIter>::IterElem, fn(_: <<P as Provider<Input>>::Value as InputIter>::Item) -> Result<char, UnknownParameterError<Input>>>>, Once<Result<char, UnknownParameterError<Input>>>>, Either<Map<Chars<'static>, fn(_: char) -> Result<char, UnknownParameterError<Input>>>, Once<Result<char, UnknownParameterError<Input>>>>>
Type of an Iterator
performing the expansion.
Auto Trait Implementations
impl<Element, Parameters> RefUnwindSafe for WithCustom<Element, Parameters> where
Element: RefUnwindSafe,
Parameters: RefUnwindSafe,
impl<Element, Parameters> Send for WithCustom<Element, Parameters> where
Element: Send,
Parameters: Send,
impl<Element, Parameters> Sync for WithCustom<Element, Parameters> where
Element: Sync,
Parameters: Sync,
impl<Element, Parameters> Unpin for WithCustom<Element, Parameters> where
Element: Unpin,
Parameters: Unpin,
impl<Element, Parameters> UnwindSafe for WithCustom<Element, Parameters> where
Element: UnwindSafe,
Parameters: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more