pub enum ExprKind {
Constant,
Variable,
Function {
arity: usize,
},
Array,
Attribute,
}
Expand description
Classifies the kind of expression node in the AST.
This enum is used to categorize expression nodes at a higher level than the specific AST node variants, making it easier to determine the general type of an expression without matching on all variants.
Variants§
Constant
A constant numerical value.
Variable
A variable reference.
Function
A function call with a specific arity (number of arguments).
Array
An array element access.
Attribute
An object attribute access.
Trait Implementations§
impl Copy for ExprKind
impl Eq for ExprKind
impl StructuralPartialEq for ExprKind
Auto Trait Implementations§
impl Freeze for ExprKind
impl RefUnwindSafe for ExprKind
impl Send for ExprKind
impl Sync for ExprKind
impl Unpin for ExprKind
impl UnwindSafe for ExprKind
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.