pub enum Associativity {
Left,
Right,
}
Expand description
Associativity of the operator
Variants§
Left
Left associative operator
5 * 5 * 7 = (5 * 5) * 7
Right
Right associative operator
5 ^ 5 ^ 9 = 5 ^ (5 ^ 9)
Trait Implementations§
Source§impl Clone for Associativity
impl Clone for Associativity
Source§fn clone(&self) -> Associativity
fn clone(&self) -> Associativity
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 Associativity
impl Debug for Associativity
Source§impl PartialEq for Associativity
impl PartialEq for Associativity
impl Copy for Associativity
impl StructuralPartialEq for Associativity
Auto Trait Implementations§
impl Freeze for Associativity
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