pub struct CmpNotAssociative<oper1, first, site, second, third, oper2> {
pub oper1: oper1,
pub first: first,
pub site: site,
pub second: second,
pub third: third,
pub oper2: oper2,
}Expand description
Error for when a comparison operator is used with associativity.
Since a = b = c is ambiguous (does it mean (a = b) = c or a = (b = c)
or (a = b) and (b = c), we choose to reject all interpretations and
ask for explicit parentheses around comparison operators.
Fields§
§oper1: oper1The < of a < b > c
first: firstThe a of a < b > c
site: siteThe whole location of a < b > c
second: secondThe b of a < b > c
third: thirdThe c of a < b > c
oper2: oper2The > of a < b > c
Trait Implementations§
Source§impl<oper1, first, site, second, third, oper2> IntoError for CmpNotAssociative<oper1, first, site, second, third, oper2>
impl<oper1, first, site, second, third, oper2> IntoError for CmpNotAssociative<oper1, first, site, second, third, oper2>
Auto Trait Implementations§
impl<oper1, first, site, second, third, oper2> Freeze for CmpNotAssociative<oper1, first, site, second, third, oper2>
impl<oper1, first, site, second, third, oper2> RefUnwindSafe for CmpNotAssociative<oper1, first, site, second, third, oper2>where
oper1: RefUnwindSafe,
first: RefUnwindSafe,
site: RefUnwindSafe,
second: RefUnwindSafe,
third: RefUnwindSafe,
oper2: RefUnwindSafe,
impl<oper1, first, site, second, third, oper2> Send for CmpNotAssociative<oper1, first, site, second, third, oper2>
impl<oper1, first, site, second, third, oper2> Sync for CmpNotAssociative<oper1, first, site, second, third, oper2>
impl<oper1, first, site, second, third, oper2> Unpin for CmpNotAssociative<oper1, first, site, second, third, oper2>
impl<oper1, first, site, second, third, oper2> UnwindSafe for CmpNotAssociative<oper1, first, site, second, third, oper2>where
oper1: UnwindSafe,
first: UnwindSafe,
site: UnwindSafe,
second: UnwindSafe,
third: UnwindSafe,
oper2: UnwindSafe,
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