Struct chandeliers_err::CmpNotAssociative
source · pub struct CmpNotAssociative<First, Oper1, Second, Oper2, Third, Site> {
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§
Auto Trait Implementations§
impl<First, Oper1, Second, Oper2, Third, Site> RefUnwindSafe for CmpNotAssociative<First, Oper1, Second, Oper2, Third, Site>where First: RefUnwindSafe, Oper1: RefUnwindSafe, Oper2: RefUnwindSafe, Second: RefUnwindSafe, Site: RefUnwindSafe, Third: RefUnwindSafe,
impl<First, Oper1, Second, Oper2, Third, Site> Send for CmpNotAssociative<First, Oper1, Second, Oper2, Third, Site>where First: Send, Oper1: Send, Oper2: Send, Second: Send, Site: Send, Third: Send,
impl<First, Oper1, Second, Oper2, Third, Site> Sync for CmpNotAssociative<First, Oper1, Second, Oper2, Third, Site>where First: Sync, Oper1: Sync, Oper2: Sync, Second: Sync, Site: Sync, Third: Sync,
impl<First, Oper1, Second, Oper2, Third, Site> Unpin for CmpNotAssociative<First, Oper1, Second, Oper2, Third, Site>where First: Unpin, Oper1: Unpin, Oper2: Unpin, Second: Unpin, Site: Unpin, Third: Unpin,
impl<First, Oper1, Second, Oper2, Third, Site> UnwindSafe for CmpNotAssociative<First, Oper1, Second, Oper2, Third, Site>where First: UnwindSafe, Oper1: UnwindSafe, Oper2: UnwindSafe, Second: UnwindSafe, Site: UnwindSafe, Third: 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