pub struct AmbiguousOperator {
pub name: Name,
pub associativity: Associativity,
pub declaration: InfixDeclaration,
}Expand description
One side of an Error::AmbiguousOperatorPrecedence: the operator as the user
spelled it, how its infix declaration said it associates, and where that
declaration was written.
associativity is carried rather than re-derived because the message depends on
it — an infix non operator does not chain at all, where a left against a
right is a choice the user can make with parentheses — and the error outlives
the environment the declaration was looked up in.
Fields§
§name: Name§associativity: Associativity§declaration: InfixDeclarationTrait Implementations§
Auto Trait Implementations§
impl Freeze for AmbiguousOperator
impl RefUnwindSafe for AmbiguousOperator
impl Send for AmbiguousOperator
impl Sync for AmbiguousOperator
impl Unpin for AmbiguousOperator
impl UnsafeUnpin for AmbiguousOperator
impl UnwindSafe for AmbiguousOperator
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