pub enum Regex<T> {
Satisfy(Rc<dyn Fn(&T) + 'static>),
Concat(Box<Regex<T>, Global>, Box<Regex<T>, Global>),
Group(Box<Regex<T>, Global>),
Or(Box<Regex<T>, Global>, Box<Regex<T>, Global>),
ZeroOrOne(Box<Regex<T>, Global>),
Repeat0(Box<Regex<T>, Global>),
Repeat1(Box<Regex<T>, Global>),
}Variants
Satisfy(Rc<dyn Fn(&T) + 'static>)
Concat(Box<Regex<T>, Global>, Box<Regex<T>, Global>)
Group(Box<Regex<T>, Global>)
Or(Box<Regex<T>, Global>, Box<Regex<T>, Global>)
ZeroOrOne(Box<Regex<T>, Global>)
Repeat0(Box<Regex<T>, Global>)
Repeat1(Box<Regex<T>, Global>)
Implementations
sourceimpl<T> Regex<T> where
T: 'static,
impl<T> Regex<T> where
T: 'static,
pub fn satisfy(f: impl Fn(&T) -> bool + 'static) -> Regex<T>
pub fn any() -> Regex<T>
pub fn zero_or_one(reg: Regex<T>) -> Regex<T>
pub fn repeat1(reg: Regex<T>) -> Regex<T>
pub fn repeat0(reg: Regex<T>) -> Regex<T>
pub fn concat(r: Regex<T>, s: Regex<T>) -> Regex<T>
pub fn or(left: Regex<T>, right: Regex<T>) -> Regex<T>
pub fn group(reg: Regex<T>) -> Regex<T>
pub fn is(value: T) -> Regex<T> where
T: 'static + PartialEq<T>,
pub fn seq(values: &[T]) -> Regex<T> where
T: 'static + PartialEq<T> + Clone,
pub fn compile(&self) -> CompiledRegex<T>
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Regex<T>
impl<T> !Send for Regex<T>
impl<T> !Sync for Regex<T>
impl<T> Unpin for Regex<T>
impl<T> !UnwindSafe for Regex<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more