CmpNotAssociative

Struct CmpNotAssociative 

Source
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: 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<oper1, first, site, second, third, oper2> IntoError for CmpNotAssociative<oper1, first, site, second, third, oper2>
where oper1: Display, first: Display, site: TrySpan, second: Display, third: Display, oper2: Display,

Source§

fn into_err(self) -> Error

Produce the sequence of spans and help messages.

Auto Trait Implementations§

§

impl<oper1, first, site, second, third, oper2> Freeze for CmpNotAssociative<oper1, first, site, second, third, oper2>
where oper1: Freeze, first: Freeze, site: Freeze, second: Freeze, third: Freeze, oper2: Freeze,

§

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>
where oper1: Send, first: Send, site: Send, second: Send, third: Send, oper2: Send,

§

impl<oper1, first, site, second, third, oper2> Sync for CmpNotAssociative<oper1, first, site, second, third, oper2>
where oper1: Sync, first: Sync, site: Sync, second: Sync, third: Sync, oper2: Sync,

§

impl<oper1, first, site, second, third, oper2> Unpin for CmpNotAssociative<oper1, first, site, second, third, oper2>
where oper1: Unpin, first: Unpin, site: Unpin, second: Unpin, third: Unpin, oper2: Unpin,

§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.