pub enum ObligationCauseFailureCode {
Show 16 variants
MethodCompat {
span: Span,
subdiags: Vec<TypeErrorAdditionalDiags>,
},
TypeCompat {
span: Span,
subdiags: Vec<TypeErrorAdditionalDiags>,
},
ConstCompat {
span: Span,
subdiags: Vec<TypeErrorAdditionalDiags>,
},
TryCompat {
span: Span,
subdiags: Vec<TypeErrorAdditionalDiags>,
},
MatchCompat {
span: Span,
subdiags: Vec<TypeErrorAdditionalDiags>,
},
IfElseDifferent {
span: Span,
subdiags: Vec<TypeErrorAdditionalDiags>,
},
NoElse {
span: Span,
},
NoDiverge {
span: Span,
subdiags: Vec<TypeErrorAdditionalDiags>,
},
FnMainCorrectType {
span: Span,
},
FnStartCorrectType {
span: Span,
subdiags: Vec<TypeErrorAdditionalDiags>,
},
FnLangCorrectType {
span: Span,
subdiags: Vec<TypeErrorAdditionalDiags>,
lang_item_name: Symbol,
},
IntrinsicCorrectType {
span: Span,
subdiags: Vec<TypeErrorAdditionalDiags>,
},
MethodCorrectType {
span: Span,
subdiags: Vec<TypeErrorAdditionalDiags>,
},
ClosureSelfref {
span: Span,
},
CantCoerce {
span: Span,
subdiags: Vec<TypeErrorAdditionalDiags>,
},
Generic {
span: Span,
subdiags: Vec<TypeErrorAdditionalDiags>,
},
}
Variants§
MethodCompat
TypeCompat
ConstCompat
TryCompat
MatchCompat
IfElseDifferent
NoElse
NoDiverge
FnMainCorrectType
FnStartCorrectType
FnLangCorrectType
IntrinsicCorrectType
MethodCorrectType
ClosureSelfref
CantCoerce
Generic
Trait Implementations§
source§impl<'__diagnostic_handler_sess, G> IntoDiagnostic<'__diagnostic_handler_sess, G> for ObligationCauseFailureCodewhere
G: EmissionGuarantee,
impl<'__diagnostic_handler_sess, G> IntoDiagnostic<'__diagnostic_handler_sess, G> for ObligationCauseFailureCodewhere G: EmissionGuarantee,
source§fn into_diagnostic(
self,
handler: &'__diagnostic_handler_sess Handler
) -> DiagnosticBuilder<'__diagnostic_handler_sess, G>
fn into_diagnostic( self, handler: &'__diagnostic_handler_sess Handler ) -> DiagnosticBuilder<'__diagnostic_handler_sess, G>
Write out as a diagnostic out of
Handler
.Auto Trait Implementations§
impl RefUnwindSafe for ObligationCauseFailureCode
impl !Send for ObligationCauseFailureCode
impl !Sync for ObligationCauseFailureCode
impl Unpin for ObligationCauseFailureCode
impl UnwindSafe for ObligationCauseFailureCode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes
Size for each variant:
MethodCompat
: 36 bytesTypeCompat
: 36 bytesConstCompat
: 36 bytesTryCompat
: 36 bytesMatchCompat
: 36 bytesIfElseDifferent
: 36 bytesNoElse
: 8 bytesNoDiverge
: 36 bytesFnMainCorrectType
: 8 bytesFnStartCorrectType
: 36 bytesFnLangCorrectType
: 36 bytesIntrinsicCorrectType
: 36 bytesMethodCorrectType
: 36 bytesClosureSelfref
: 8 bytesCantCoerce
: 36 bytesGeneric
: 36 bytes