Struct rustc_typeck::middle::traits::ObligationCauseUnstable [-] [+] [src]

pub struct ObligationCause<'tcx> {
    pub span: Span,
    pub body_id: u32,
    pub code: ObligationCauseCode<'tcx>,
}

Why did we incur this obligation? Used for error reporting.

Fields

span
body_id
code

Methods

impl<'tcx> ObligationCause<'tcx>

fn new(span: Span, body_id: u32, code: ObligationCauseCode<'tcx>) -> ObligationCause<'tcx>

fn misc(span: Span, body_id: u32) -> ObligationCause<'tcx>

fn dummy() -> ObligationCause<'tcx>

Trait Implementations

Derived Implementations

impl<'tcx> Eq for ObligationCause<'tcx>

impl<'tcx> PartialEq<ObligationCause<'tcx>> for ObligationCause<'tcx>

fn eq(&self, __arg_0: &ObligationCause<'tcx>) -> bool

fn ne(&self, __arg_0: &ObligationCause<'tcx>) -> bool

impl<'tcx> Clone for ObligationCause<'tcx>

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

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