Enum cpast::clex_language::ast::UnitExpression
source · pub enum UnitExpression {
Primitives {
data_type: DataType,
repetition: PositiveReferenceType,
},
CapturingGroup {
group_number: u64,
range: (PositiveReferenceType, PositiveReferenceType),
},
NonCapturingGroup {
nest_exp: Vec<UnitExpression>,
repetition: PositiveReferenceType,
},
Eof,
}Expand description
Represents various unit expressions within a program.
Variants§
Primitives
Primitive unit expression with specified data type and repetition type.
CapturingGroup
Capturing group unit expression with a group number and range.
NonCapturingGroup
Non-capturing group unit expression with nested expressions and repetition type.
Eof
Represents the end of the file in the program.
Trait Implementations§
source§impl Clone for UnitExpression
impl Clone for UnitExpression
source§fn clone(&self) -> UnitExpression
fn clone(&self) -> UnitExpression
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 UnitExpression
impl Debug for UnitExpression
source§impl PartialEq for UnitExpression
impl PartialEq for UnitExpression
impl StructuralPartialEq for UnitExpression
Auto Trait Implementations§
impl Freeze for UnitExpression
impl RefUnwindSafe for UnitExpression
impl Send for UnitExpression
impl Sync for UnitExpression
impl Unpin for UnitExpression
impl UnwindSafe for UnitExpression
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)