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: Oper1

The < of a < b > c

§first: First

The a of a < b > c

§site: Site

The whole location of a < b > c

§second: Second

The b of a < b > c

§third: Third

The c of a < b > c

§oper2: Oper2

The > of a < b > c

Trait Implementations§

source§

impl<First, Oper1, Second, Oper2, Third, Site> IntoError for CmpNotAssociative<First, Oper1, Second, Oper2, Third, Site>where Oper1: Display, Oper2: Display, First: Display, Second: Display, Third: Display, Site: TrySpan,

source§

fn into_err(self) -> Error

Produce the sequence of spans and help messages.

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.