pub struct OpInfo {
pub canonical: &'static str,
pub low: u8,
pub high: u8,
pub assoc: Assoc,
pub fixity: Fixity,
}Expand description
Precedence information for one operator.
Fields§
§canonical: &'static strThe canonical spelling; synonyms share it.
low: u8Lowest precedence in the operator’s range.
high: u8Highest precedence in the operator’s range.
assoc: AssocAssociativity.
fixity: FixityFixity.
Implementations§
Trait Implementations§
impl Copy for OpInfo
impl Eq for OpInfo
impl StructuralPartialEq for OpInfo
Auto Trait Implementations§
impl Forget for OpInfo
impl Freeze for OpInfo
impl Move for OpInfo
impl RefUnwindSafe for OpInfo
impl Send for OpInfo
impl Sync for OpInfo
impl Unpin for OpInfo
impl UnsafeUnpin for OpInfo
impl UnwindSafe for OpInfo
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