pub enum Expression {
SymbolSet {
segments: Vec<Segment<u32>>,
},
NegatedSymbolSet {
segments: Vec<Segment<u32>>,
},
Alternation {
expressions: Vec<Expression>,
},
Concatenation {
expressions: Vec<Expression>,
},
Repetition {
expression: Box<Expression>,
min: Option<u32>,
max: Option<u32>,
},
}
Variants§
SymbolSet
NegatedSymbolSet
Alternation
Fields
§
expressions: Vec<Expression>
Concatenation
Fields
§
expressions: Vec<Expression>
Repetition
Implementations§
Trait Implementations§
Source§impl Clone for Expression
impl Clone for Expression
Source§fn clone(&self) -> Expression
fn clone(&self) -> Expression
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 Expression
impl Debug for Expression
Source§impl From<Re> for Expression
impl From<Re> for Expression
Source§fn from(re: Re) -> Expression
fn from(re: Re) -> Expression
Converts to this type from the input type.
Source§impl From<Re> for Expression
impl From<Re> for Expression
Source§fn from(re: Re) -> Expression
fn from(re: Re) -> Expression
Converts to this type from the input type.
Source§impl Ord for Expression
impl Ord for Expression
Source§fn cmp(&self, other: &Expression) -> Ordering
fn cmp(&self, other: &Expression) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Expression
impl PartialEq for Expression
Source§impl PartialOrd for Expression
impl PartialOrd for Expression
impl Eq for Expression
impl StructuralPartialEq for Expression
Auto Trait Implementations§
impl Freeze for Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
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