pub enum PrimaryExpression<'tree> {
Literal(Box<Literal<'tree>>),
ArrayAccess(Box<ArrayAccess<'tree>>),
ArrayCreationExpression(Box<ArrayCreationExpression<'tree>>),
ClassLiteral(Box<ClassLiteral<'tree>>),
FieldAccess(Box<FieldAccess<'tree>>),
Identifier(Box<Identifier<'tree>>),
MethodInvocation(Box<MethodInvocation<'tree>>),
MethodReference(Box<MethodReference<'tree>>),
ObjectCreationExpression(Box<ObjectCreationExpression<'tree>>),
ParenthesizedExpression(Box<ParenthesizedExpression<'tree>>),
TemplateExpression(Box<TemplateExpression<'tree>>),
This(Box<This<'tree>>),
}Variants§
Literal(Box<Literal<'tree>>)
ArrayAccess(Box<ArrayAccess<'tree>>)
ArrayCreationExpression(Box<ArrayCreationExpression<'tree>>)
ClassLiteral(Box<ClassLiteral<'tree>>)
FieldAccess(Box<FieldAccess<'tree>>)
Identifier(Box<Identifier<'tree>>)
MethodInvocation(Box<MethodInvocation<'tree>>)
MethodReference(Box<MethodReference<'tree>>)
ObjectCreationExpression(Box<ObjectCreationExpression<'tree>>)
ParenthesizedExpression(Box<ParenthesizedExpression<'tree>>)
TemplateExpression(Box<TemplateExpression<'tree>>)
This(Box<This<'tree>>)
Trait Implementations§
Source§impl<'tree> Clone for PrimaryExpression<'tree>
impl<'tree> Clone for PrimaryExpression<'tree>
Source§fn clone(&self) -> PrimaryExpression<'tree>
fn clone(&self) -> PrimaryExpression<'tree>
Returns a duplicate 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<'tree> Debug for PrimaryExpression<'tree>
impl<'tree> Debug for PrimaryExpression<'tree>
Source§impl<'tree> FromNode<'tree> for PrimaryExpression<'tree>
impl<'tree> FromNode<'tree> for PrimaryExpression<'tree>
Auto Trait Implementations§
impl<'tree> Freeze for PrimaryExpression<'tree>
impl<'tree> RefUnwindSafe for PrimaryExpression<'tree>
impl<'tree> Send for PrimaryExpression<'tree>
impl<'tree> Sync for PrimaryExpression<'tree>
impl<'tree> Unpin for PrimaryExpression<'tree>
impl<'tree> UnsafeUnpin for PrimaryExpression<'tree>
impl<'tree> UnwindSafe for PrimaryExpression<'tree>
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