pub trait Regex<T, M> {
fn empty(&self) -> bool;
fn shift(&mut self, c: &T, mark: M) -> M;
fn reset(&mut self);
}
Required Methods
fn shift(&mut self, c: &T, mark: M) -> M
fn reset(&mut self)
Implementors
impl<T, M> Regex<T, M> for Box<Regex<T, M>>
impl<T, M: Zero> Regex<T, M> for Epsilon
impl<T, M: Mul<Output = M>, F: Fn(&T) -> M> Regex<T, M> for F
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,
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,
impl<T, M: Zero + Clone, R> Regex<T, M> for Repetition<M, R> where
R: Regex<T, M> + Sized,