pub struct Assoc {
pub fixity: Fixity,
pub precedence: i32,
}Expand description
Struct for encompassing the associativity of an operator
Fields§
§fixity: FixityOperator fixity
precedence: i32Operator precedence
Trait Implementations§
impl Copy for Assoc
impl Eq for Assoc
Source§impl Ord for Assoc
impl Ord for Assoc
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Assoc
impl PartialOrd for Assoc
impl StructuralPartialEq for Assoc
Auto Trait Implementations§
impl Freeze for Assoc
impl RefUnwindSafe for Assoc
impl Send for Assoc
impl Sync for Assoc
impl Unpin for Assoc
impl UnsafeUnpin for Assoc
impl UnwindSafe for Assoc
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