Trait IntoRegexCharIter

Source
pub trait IntoRegexCharIter<I> {
    type Iter: Iterator<Item = Result<char, ParameterError<I>>>;

    // Required method
    fn into_regex_char_iter(self) -> Self::Iter;
}
Available on crate feature into-regex only.
Expand description

Expansion of a Cucumber Expressions AST element into a Regex by producing a chars Iterator following original production rules.

Required Associated Types§

Source

type Iter: Iterator<Item = Result<char, ParameterError<I>>>

Type of Iterator performing the expansion.

Required Methods§

Source

fn into_regex_char_iter(self) -> Self::Iter

Consumes this AST element returning an Iterator over chars transformable into a Regex.

Implementors§

Source§

impl<I> IntoRegexCharIter<I> for Alternative<I>
where I: Display + Input, <I as Input>::Item: AsChar,

Source§

impl<I> IntoRegexCharIter<I> for SingleExpression<I>
where I: Clone + Display + Input, <I as Input>::Item: AsChar,

Source§

impl<I> IntoRegexCharIter<I> for Alternation<I>
where I: Display + Input, <I as Input>::Item: AsChar,

Source§

impl<I> IntoRegexCharIter<I> for Expression<I>
where I: Clone + Display + Input, <I as Input>::Item: AsChar,

Source§

impl<I> IntoRegexCharIter<I> for Optional<I>
where I: Display + Input, <I as Input>::Item: AsChar,

Source§

type Iter = Map<Chain<Chain<Chars<'static>, EscapeForRegex<Map<<I as Input>::Iter, fn(<I as Input>::Item) -> char>>>, Chars<'static>>, fn(char) -> Result<char, ParameterError<I>>>

Source§

impl<I> IntoRegexCharIter<I> for Parameter<I>
where I: Clone + Display + Input, <I as Input>::Item: AsChar,

Source§

impl<I, P> IntoRegexCharIter<I> for WithCustom<Parameter<I>, P>
where I: Clone + Display + Input, <I as Input>::Item: AsChar, P: Provider<I>, <P as Provider<I>>::Value: Input,

Source§

impl<I, Pars> IntoRegexCharIter<I> for WithCustom<SingleExpression<I>, Pars>
where I: Clone + Display + Input, <I as Input>::Item: AsChar, Pars: Provider<I>, <Pars as Provider<I>>::Value: Input,

Source§

impl<I, Pars> IntoRegexCharIter<I> for WithCustom<Expression<I>, Pars>
where I: Clone + Display + Input, <I as Input>::Item: AsChar, Pars: Clone + Provider<I>, <Pars as Provider<I>>::Value: Input,