Struct rustc::traits::ObligationCause
[−]
[src]
pub struct ObligationCause<'tcx> {
pub span: Span,
pub body_id: NodeId,
pub code: ObligationCauseCode<'tcx>,
}Unstable (
rustc_private)Why did we incur this obligation? Used for error reporting.
Fields
span: Span
Unstable (
rustc_private)body_id: NodeId
Unstable (
rustc_private)code: ObligationCauseCode<'tcx>
Unstable (
rustc_private)Methods
impl<'tcx> ObligationCause<'tcx>[src]
fn new(span: Span, body_id: NodeId, code: ObligationCauseCode<'tcx>) -> ObligationCause<'tcx>
fn misc(span: Span, body_id: NodeId) -> ObligationCause<'tcx>
fn dummy() -> ObligationCause<'tcx>
Trait Implementations
Derived Implementations
impl<'tcx> Eq for ObligationCause<'tcx>[src]
impl<'tcx> PartialEq for ObligationCause<'tcx>[src]
fn eq(&self, __arg_0: &ObligationCause<'tcx>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ObligationCause<'tcx>) -> bool
This method tests for !=.
impl<'tcx> Debug for ObligationCause<'tcx>[src]
impl<'tcx> Clone for ObligationCause<'tcx>[src]
fn clone(&self) -> ObligationCause<'tcx>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more