Enum rustc_trans::middle::traits::ObligationCauseCode [−] [src]

pub enum ObligationCauseCode<'tcx> {
    MiscObligation,
    ItemObligation(DefId),
    ObjectCastObligation(&'tcx TyS<'tcx>),
    AssignmentLhsSized,
    StructInitializerSized,
    VariableType(u32),
    ReturnType,
    RepeatVec,
    ClosureCapture(u32, Span, BuiltinBound),
    FieldSized,
    SharedStatic,
    BuiltinDerivedObligation(DerivedObligationCause<'tcx>),
    ImplDerivedObligation(DerivedObligationCause<'tcx>),
    CompareImplMethodObligation,
}
Unstable

Variants

MiscObligation
Unstable

Not well classified or should be obvious from span.

ItemObligation
Unstable

In an impl of trait X for type Y, type Y must also implement all supertraits of X.

ObjectCastObligation
Unstable

Obligation incurred due to an object cast.

AssignmentLhsSized
Unstable

Various cases where expressions must be sized/copy/etc:

StructInitializerSized
Unstable
VariableType
Unstable
ReturnType
Unstable
RepeatVec
Unstable
ClosureCapture
Unstable
FieldSized
Unstable
SharedStatic
Unstable
BuiltinDerivedObligation
Unstable
ImplDerivedObligation
Unstable
CompareImplMethodObligation
Unstable

Trait Implementations

Derived Implementations

impl<'tcx> Eq for ObligationCauseCode<'tcx>

impl<'tcx> PartialEq<ObligationCauseCode<'tcx>> for ObligationCauseCode<'tcx>

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

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

impl<'tcx> Clone for ObligationCauseCode<'tcx>

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

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