Trait Regex

Source
pub trait Regex<T, M> {
    // Required methods
    fn empty(&self) -> bool;
    fn shift(&mut self, c: &T, mark: M) -> M;
    fn reset(&mut self);
}

Required Methods§

Source

fn empty(&self) -> bool

Source

fn shift(&mut self, c: &T, mark: M) -> M

Source

fn reset(&mut self)

Trait Implementations§

Source§

impl<T, M> Regex<T, M> for Box<dyn Regex<T, M>>

Source§

fn empty(&self) -> bool

Source§

fn shift(&mut self, c: &T, mark: M) -> M

Source§

fn reset(&mut self)

Implementations on Foreign Types§

Source§

impl<T, M> Regex<T, M> for Box<dyn Regex<T, M>>

Source§

fn empty(&self) -> bool

Source§

fn shift(&mut self, c: &T, mark: M) -> M

Source§

fn reset(&mut self)

Implementors§

Source§

impl<T, M: Add<Output = M> + Clone, L, R> Regex<T, M> for Alternative<L, R>
where L: Regex<T, M> + Sized, R: Regex<T, M> + Sized,

Source§

impl<T, M: Mul<Output = M>, F: Fn(&T) -> M> Regex<T, M> for F

Source§

impl<T, M: Zero + Clone, R> Regex<T, M> for Repetition<M, R>
where R: Regex<T, M> + Sized,

Source§

impl<T, M: Zero + Mul + Clone, L, R> Regex<T, M> for Sequence<M, L, R>
where L: Regex<T, M> + Sized, R: Regex<T, M> + Sized,

Source§

impl<T, M: Zero> Regex<T, M> for Epsilon