Enum brzozowski_regex::Regex
source · pub enum Regex<B: Builder> {
EmptySet,
EmptyString,
Symbol(B::Symbol),
Concat(Box<Self>, Box<Self>),
Closure(Box<Self>),
Or(Box<Self>, Box<Self>),
And(Box<Self>, Box<Self>),
Complement(Box<Self>),
}
Expand description
Data type describing regular expressions over values of type S.
Variants§
EmptySet
EmptyString
Symbol(B::Symbol)
Concat(Box<Self>, Box<Self>)
Closure(Box<Self>)
Or(Box<Self>, Box<Self>)
And(Box<Self>, Box<Self>)
Complement(Box<Self>)
Implementations§
source§impl<B: Builder> Regex<B>
impl<B: Builder> Regex<B>
sourcepub fn derive(&self, symbol: &B::Symbol) -> Regex<B>
pub fn derive(&self, symbol: &B::Symbol) -> Regex<B>
Returns the derivative of this regular expression w.r.t. to the given symbol.
sourcepub fn derive_iter<I>(&self, symbols: impl IntoIterator<Item = I>) -> Regex<B>
pub fn derive_iter<I>(&self, symbols: impl IntoIterator<Item = I>) -> Regex<B>
Returns the derivative of this regular expression w.r.t. the given symbols.
Trait Implementations§
source§impl<B: PartialEq + Builder> PartialEq for Regex<B>
impl<B: PartialEq + Builder> PartialEq for Regex<B>
impl<B: Eq + Builder> Eq for Regex<B>
impl<B: Builder> StructuralEq for Regex<B>
impl<B: Builder> StructuralPartialEq for Regex<B>
Auto Trait Implementations§
impl<B> RefUnwindSafe for Regex<B>
impl<B> Send for Regex<B>
impl<B> Sync for Regex<B>
impl<B> Unpin for Regex<B>
impl<B> UnwindSafe for Regex<B>
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