Trait neure::re::ctor::ConstructOp

source ·
pub trait ConstructOp<'a, C>where
    Self: Sized,
    C: Context<'a> + Match<C>,{
Show 17 methods // Required methods fn map<F, O>(self, f: F) -> Map<C, Self, F, O>; fn pat(self) -> Pattern<C, Self>; fn opt(self) -> OptionPat<C, Self>; fn quote<L, R>(self, left: L, right: R) -> Quote<C, Self, L, R>; fn sep<S>(self, sep: S) -> Separate<C, Self, S>; fn sep_once<S, R>(self, sep: S, right: R) -> SepOnce<C, Self, S, R>; fn sep_collect<S, O, V>(self, sep: S) -> SepCollect<C, Self, S, O, V>; fn or<P>(self, pat: P) -> Or<C, Self, P>; fn ltm<P>(self, pat: P) -> LongestTokenMatch<C, Self, P>; fn then<T>(self, then: T) -> Then<C, Self, T>; fn if_then<I, T>(self, if: I, then: T) -> IfThen<C, Self, I, T>; fn repeat(self, range: impl Into<CRange<usize>>) -> Repeat<C, Self>; fn collect<O, T>(self) -> Collect<C, Self, O, T>; fn if<I, E>(self, if: I, else: E) -> IfRegex<C, Self, I, E> where I: Fn(&C) -> Result<bool, Error>; fn pad<T>(self, tail: T) -> Pad<C, Self, T>; fn padded<T>(self, tail: T) -> Padded<C, Self, T>; fn ws( self ) -> Pad<C, Self, NeureZeroMore<C, AsciiWhiteSpace, C::Item, NullCond>> where C: Context<'a, Item = char>;
}

Required Methods§

source

fn map<F, O>(self, f: F) -> Map<C, Self, F, O>

source

fn pat(self) -> Pattern<C, Self>

source

fn opt(self) -> OptionPat<C, Self>

source

fn quote<L, R>(self, left: L, right: R) -> Quote<C, Self, L, R>

source

fn sep<S>(self, sep: S) -> Separate<C, Self, S>

source

fn sep_once<S, R>(self, sep: S, right: R) -> SepOnce<C, Self, S, R>

source

fn sep_collect<S, O, V>(self, sep: S) -> SepCollect<C, Self, S, O, V>

source

fn or<P>(self, pat: P) -> Or<C, Self, P>

source

fn ltm<P>(self, pat: P) -> LongestTokenMatch<C, Self, P>

source

fn then<T>(self, then: T) -> Then<C, Self, T>

source

fn if_then<I, T>(self, if: I, then: T) -> IfThen<C, Self, I, T>

source

fn repeat(self, range: impl Into<CRange<usize>>) -> Repeat<C, Self>

source

fn collect<O, T>(self) -> Collect<C, Self, O, T>

source

fn if<I, E>(self, if: I, else: E) -> IfRegex<C, Self, I, E>where I: Fn(&C) -> Result<bool, Error>,

source

fn pad<T>(self, tail: T) -> Pad<C, Self, T>

source

fn padded<T>(self, tail: T) -> Padded<C, Self, T>

source

fn ws( self ) -> Pad<C, Self, NeureZeroMore<C, AsciiWhiteSpace, C::Item, NullCond>>where C: Context<'a, Item = char>,

Implementors§

source§

impl<'a, C, T> ConstructOp<'a, C> for Twhere T: Regex<C>, C: Context<'a> + Match<C>,