[−][src]Struct rustc_infer::infer::TypeTrace

pub struct TypeTrace<'tcx> {
    cause: ObligationCause<'tcx>,
    values: ValuePairs<'tcx>,
}

The trace designates the path through inference that we took to encounter an error or subtyping constraint.

See the error_reporting module for more details.

Fields

cause: ObligationCause<'tcx>values: ValuePairs<'tcx>

Implementations

impl<'tcx> TypeTrace<'tcx>[src]

pub fn span(&self) -> Span[src]

pub fn types(
    cause: &ObligationCause<'tcx>,
    a_is_expected: bool,
    a: Ty<'tcx>,
    b: Ty<'tcx>
) -> TypeTrace<'tcx>
[src]

pub fn consts(
    cause: &ObligationCause<'tcx>,
    a_is_expected: bool,
    a: &'tcx Const<'tcx>,
    b: &'tcx Const<'tcx>
) -> TypeTrace<'tcx>
[src]

pub fn dummy(tcx: TyCtxt<'tcx>) -> TypeTrace<'tcx>[src]

Trait Implementations

impl<'tcx> Clone for TypeTrace<'tcx>[src]

impl<'tcx> Debug for TypeTrace<'tcx>[src]

Auto Trait Implementations

impl<'tcx> !RefUnwindSafe for TypeTrace<'tcx>

impl<'tcx> !Send for TypeTrace<'tcx>

impl<'tcx> !Sync for TypeTrace<'tcx>

impl<'tcx> Unpin for TypeTrace<'tcx>

impl<'tcx> !UnwindSafe for TypeTrace<'tcx>

Blanket Implementations

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