pub struct Precedence(pub u8);Expand description
Operator precedence wrapper.
Higher values indicate higher precedence. Operators with higher precedence bind more tightly than those with lower precedence.
Tuple Fields§
§0: u8Trait Implementations§
Source§impl Add for Precedence
impl Add for Precedence
Source§type Output = Precedence
type Output = Precedence
The resulting type after applying the
+ operator.Source§fn add(self, rhs: Precedence) -> <Precedence as Add>::Output
fn add(self, rhs: Precedence) -> <Precedence as Add>::Output
Performs the
+ operation. Read moreSource§impl AddAssign for Precedence
impl AddAssign for Precedence
Source§fn add_assign(&mut self, rhs: Precedence)
fn add_assign(&mut self, rhs: Precedence)
Performs the
+= operation. Read moreSource§impl Clone for Precedence
impl Clone for Precedence
Source§fn clone(&self) -> Precedence
fn clone(&self) -> Precedence
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 Precedence
impl Debug for Precedence
Source§impl Ord for Precedence
impl Ord for Precedence
Source§fn cmp(&self, other: &Precedence) -> Ordering
fn cmp(&self, other: &Precedence) -> Ordering
1.21.0 · 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 PartialEq for Precedence
impl PartialEq for Precedence
Source§impl PartialOrd for Precedence
impl PartialOrd for Precedence
impl Copy for Precedence
impl Eq for Precedence
impl StructuralPartialEq for Precedence
Auto Trait Implementations§
impl Freeze for Precedence
impl RefUnwindSafe for Precedence
impl Send for Precedence
impl Sync for Precedence
impl Unpin for Precedence
impl UnwindSafe for Precedence
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