Struct rustc_middle::ty::error::ExpectedFound[][src]

pub struct ExpectedFound<T> {
    pub expected: T,
    pub found: T,
}

Fields

expected: Tfound: T

Implementations

impl<T> ExpectedFound<T>[src]

pub fn new(a_is_expected: bool, a: T, b: T) -> Self[src]

Trait Implementations

impl<T: Clone> Clone for ExpectedFound<T>[src]

impl<T: Copy> Copy for ExpectedFound<T>[src]

impl<T: Debug> Debug for ExpectedFound<T>[src]

impl<T: Eq> Eq for ExpectedFound<T>[src]

impl<'tcx, T: Lift<'tcx>> Lift<'tcx> for ExpectedFound<T>[src]

type Lifted = ExpectedFound<T::Lifted>

impl<T: PartialEq> PartialEq<ExpectedFound<T>> for ExpectedFound<T>[src]

impl<T> StructuralEq for ExpectedFound<T>[src]

impl<T> StructuralPartialEq for ExpectedFound<T>[src]

impl<T, 'tcx> TypeFoldable<'tcx> for ExpectedFound<T> where
    T: TypeFoldable<'tcx>, 
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for ExpectedFound<T> where
    T: RefUnwindSafe

impl<T> Send for ExpectedFound<T> where
    T: Send

impl<T> Sync for ExpectedFound<T> where
    T: Sync

impl<T> Unpin for ExpectedFound<T> where
    T: Unpin

impl<T> UnwindSafe for ExpectedFound<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<'tcx, T> ArenaAllocatable<'tcx, ()> for T where
    T: Copy
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeResult<T> for T[src]

type Error = !

impl<'tcx, T> Subst<'tcx> for T where
    T: TypeFoldable<'tcx>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]