Enum vec_reg_common::Regex
source · [−]pub enum Regex<T> {
Satisfy(Rc<dyn Fn(&T) -> bool>),
Concat(Box<Regex<T>>, Box<Regex<T>>),
Group(Box<Regex<T>>),
Or(Box<Regex<T>>, Box<Regex<T>>),
ZeroOrOne(Box<Regex<T>>),
Repeat0(Box<Regex<T>>),
Repeat1(Box<Regex<T>>),
}Variants
Satisfy(Rc<dyn Fn(&T) -> bool>)
Concat(Box<Regex<T>>, Box<Regex<T>>)
Group(Box<Regex<T>>)
Or(Box<Regex<T>>, Box<Regex<T>>)
ZeroOrOne(Box<Regex<T>>)
Repeat0(Box<Regex<T>>)
Repeat1(Box<Regex<T>>)
Implementations
sourceimpl<T: 'static> Regex<T>
impl<T: 'static> Regex<T>
pub fn satisfy(f: impl Fn(&T) -> bool + 'static) -> Self
pub fn any() -> Self
pub fn zero_or_one(reg: Self) -> Self
pub fn repeat1(reg: Self) -> Self
pub fn repeat0(reg: Self) -> Self
pub fn concat(r: Self, s: Self) -> Self
pub fn or(left: Self, right: Self) -> Self
pub fn group(reg: Self) -> Self
pub fn is(value: T) -> Self where
T: PartialEq + 'static,
pub fn seq(values: &[T]) -> Self where
T: PartialEq + Clone + 'static,
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