Enum cpast::clex_language::ast::PositiveReferenceType
source · pub enum PositiveReferenceType {
ByGroup {
group_number: u64,
},
ByLiteral(u64),
}Expand description
Represents the repetition type of unit expression, which is guaranteed to dereference to a positive value only!
Variants§
ByGroup
Reference based on a capturing group with a specified group number.
ByLiteral(u64)
Reference based on a specified literal.
Trait Implementations§
source§impl Clone for PositiveReferenceType
impl Clone for PositiveReferenceType
source§fn clone(&self) -> PositiveReferenceType
fn clone(&self) -> PositiveReferenceType
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 PositiveReferenceType
impl Debug for PositiveReferenceType
source§impl PartialEq for PositiveReferenceType
impl PartialEq for PositiveReferenceType
impl Copy for PositiveReferenceType
impl Eq for PositiveReferenceType
impl StructuralPartialEq for PositiveReferenceType
Auto Trait Implementations§
impl Freeze for PositiveReferenceType
impl RefUnwindSafe for PositiveReferenceType
impl Send for PositiveReferenceType
impl Sync for PositiveReferenceType
impl Unpin for PositiveReferenceType
impl UnwindSafe for PositiveReferenceType
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)