pub enum OperatorArity {
Unary,
Binary,
None,
}Expand description
Classify a TokenKind as unary, binary, or non-operator.
Variants§
Unary
A prefix operator (e.g., -, ¬).
Binary
An infix operator (e.g., +, *, →).
None
Not an operator.
Trait Implementations§
Source§impl Clone for OperatorArity
impl Clone for OperatorArity
Source§fn clone(&self) -> OperatorArity
fn clone(&self) -> OperatorArity
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 Debug for OperatorArity
impl Debug for OperatorArity
Source§impl PartialEq for OperatorArity
impl PartialEq for OperatorArity
impl Copy for OperatorArity
impl Eq for OperatorArity
impl StructuralPartialEq for OperatorArity
Auto Trait Implementations§
impl Freeze for OperatorArity
impl RefUnwindSafe for OperatorArity
impl Send for OperatorArity
impl Sync for OperatorArity
impl Unpin for OperatorArity
impl UnsafeUnpin for OperatorArity
impl UnwindSafe for OperatorArity
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