pub enum Regex {
EmptyString,
EmptySet,
Symbol(Rc<Symbol>),
Repeat(Rc<Regex>),
Complement(Rc<Regex>),
Or(Rc<Regex>, Rc<Regex>),
And(Rc<Regex>, Rc<Regex>),
Concat(Rc<Regex>, Rc<Regex>),
}
Expand description
A regular expression that can specify a path through a scope graph.
Can be created using parse_regex
Variants§
EmptyString
e
EmptySet
0
Symbol(Rc<Symbol>)
A symbol like a
Repeat(Rc<Regex>)
x*
Complement(Rc<Regex>)
~x
Or(Rc<Regex>, Rc<Regex>)
x | y
And(Rc<Regex>, Rc<Regex>)
x & y
Concat(Rc<Regex>, Rc<Regex>)
x y
Implementations§
Trait Implementations§
impl Eq for Regex
impl StructuralPartialEq for Regex
Auto Trait Implementations§
impl Freeze for Regex
impl RefUnwindSafe for Regex
impl !Send for Regex
impl !Sync for Regex
impl Unpin for Regex
impl UnwindSafe for Regex
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more