pub enum TokenRole {
Operator,
Operand,
Unknown,
}Expand description
The role a node plays in an expression.
Variants§
Operator
The node acts as an operator (+, &&, a call, an index).
Operand
The node acts as an operand (an identifier, a literal).
Unknown
The node plays neither role, so it is not counted.
Auto Trait Implementations§
impl Freeze for TokenRole
impl RefUnwindSafe for TokenRole
impl Send for TokenRole
impl Sync for TokenRole
impl Unpin for TokenRole
impl UnsafeUnpin for TokenRole
impl UnwindSafe for TokenRole
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