[−][src]Struct rustc_infer::infer::TypeTrace
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]
cause: &ObligationCause<'tcx>,
a_is_expected: bool,
a: Ty<'tcx>,
b: Ty<'tcx>
) -> TypeTrace<'tcx>
pub fn consts(
cause: &ObligationCause<'tcx>,
a_is_expected: bool,
a: &'tcx Const<'tcx>,
b: &'tcx Const<'tcx>
) -> TypeTrace<'tcx>[src]
cause: &ObligationCause<'tcx>,
a_is_expected: bool,
a: &'tcx Const<'tcx>,
b: &'tcx Const<'tcx>
) -> TypeTrace<'tcx>
pub fn dummy(tcx: TyCtxt<'tcx>) -> TypeTrace<'tcx>[src]
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.