Enum wac_parser::PostfixExpr
source · pub enum PostfixExpr<'a> {
Access(AccessExpr<'a>),
NamedAccess(NamedAccessExpr<'a>),
}Expand description
Represents a postfix expression in the AST.
Variants§
Access(AccessExpr<'a>)
The postfix expression is an access expression.
NamedAccess(NamedAccessExpr<'a>)
The postfix expression is a named access expression.
Implementations§
source§impl<'a> PostfixExpr<'a>
impl<'a> PostfixExpr<'a>
sourcepub fn span(&self) -> SourceSpan
pub fn span(&self) -> SourceSpan
Gets the span of the postfix expression.
Trait Implementations§
source§impl<'a> Clone for PostfixExpr<'a>
impl<'a> Clone for PostfixExpr<'a>
source§fn clone(&self) -> PostfixExpr<'a>
fn clone(&self) -> PostfixExpr<'a>
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<'a> Debug for PostfixExpr<'a>
impl<'a> Debug for PostfixExpr<'a>
Auto Trait Implementations§
impl<'a> Freeze for PostfixExpr<'a>
impl<'a> RefUnwindSafe for PostfixExpr<'a>
impl<'a> Send for PostfixExpr<'a>
impl<'a> Sync for PostfixExpr<'a>
impl<'a> Unpin for PostfixExpr<'a>
impl<'a> UnwindSafe for PostfixExpr<'a>
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)