Struct rustc::middle::infer::TypeTraceUnstable [-] [+] [src]

pub struct TypeTrace<'tcx> {
    // some fields omitted
}

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

See error_reporting.rs for more details.

Methods

impl<'tcx> TypeTrace<'tcx>

fn span(&self) -> Span

fn types(origin: TypeOrigin, a_is_expected: bool, a: Ty<'tcx>, b: Ty<'tcx>) -> TypeTrace<'tcx>

fn dummy(tcx: &ctxt<'tcx>) -> TypeTrace<'tcx>

Trait Implementations

impl<'tcx> Repr<'tcx> for TypeTrace<'tcx>

fn repr(&self, tcx: &ctxt) -> String

Derived Implementations

impl<'tcx> Debug for TypeTrace<'tcx>

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<'tcx> Clone for TypeTrace<'tcx>

fn clone(&self) -> TypeTrace<'tcx>

fn clone_from(&mut self, source: &Self)