pub enum BaseRegLan {
Empty,
Epsilon,
Range(CharSet),
Concat(RegLan, RegLan),
Loop(RegLan, LoopRange),
Complement(RegLan),
Union(Box<[RegLan]>),
Inter(Box<[RegLan]>),
}
Expand description
Abstract syntax for regular expressions
Variants§
Empty
Empty language
Epsilon
The language that contains only the empty string
Range(CharSet)
Words of length one with characters is a range [a, b]
Concat(RegLan, RegLan)
Concatenation of two languages
Loop(RegLan, LoopRange)
Generalized loop: see loop_ranges
Complement(RegLan)
Complement of a language
Union(Box<[RegLan]>)
Union of two or more languages
Inter(Box<[RegLan]>)
Intersection of two or more languages
Implementations§
Trait Implementations§
Source§impl Clone for BaseRegLan
impl Clone for BaseRegLan
Source§fn clone(&self) -> BaseRegLan
fn clone(&self) -> BaseRegLan
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BaseRegLan
impl Debug for BaseRegLan
Source§impl Display for BaseRegLan
impl Display for BaseRegLan
Source§impl Hash for BaseRegLan
impl Hash for BaseRegLan
Source§impl PartialEq for BaseRegLan
impl PartialEq for BaseRegLan
impl Eq for BaseRegLan
impl StructuralPartialEq for BaseRegLan
Auto Trait Implementations§
impl Freeze for BaseRegLan
impl RefUnwindSafe for BaseRegLan
impl !Send for BaseRegLan
impl !Sync for BaseRegLan
impl Unpin for BaseRegLan
impl UnwindSafe for BaseRegLan
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