Enum cfg::precedence::Associativity
source · pub enum Associativity {
Left,
Right,
Group,
}
Expand description
Specifies the associativity of an operator.
Variants§
Left
Left associative.
Right
Right associative.
Group
Group
usually means the operand is delimited, e.g. by parentheses.
Trait Implementations§
source§impl Clone for Associativity
impl Clone for Associativity
source§fn clone(&self) -> Associativity
fn clone(&self) -> Associativity
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 PartialEq for Associativity
impl PartialEq for Associativity
source§fn eq(&self, other: &Associativity) -> bool
fn eq(&self, other: &Associativity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Associativity
impl Eq for Associativity
impl StructuralEq for Associativity
impl StructuralPartialEq for Associativity
Auto Trait Implementations§
impl RefUnwindSafe for Associativity
impl Send for Associativity
impl Sync for Associativity
impl Unpin for Associativity
impl UnwindSafe for Associativity
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