Enum rustc_infer::traits::SelectionError [−][src]
pub enum SelectionError<'tcx> {
Unimplemented,
OutputTypeParameterMismatch(Binder<'tcx, TraitRef<'tcx>>, Binder<'tcx, TraitRef<'tcx>>, TypeError<'tcx>),
TraitNotObjectSafe(DefId),
NotConstEvaluatable(NotConstEvaluatable),
Overflow,
ErrorReporting,
}
Variants
OutputTypeParameterMismatch(Binder<'tcx, TraitRef<'tcx>>, Binder<'tcx, TraitRef<'tcx>>, TypeError<'tcx>)
Tuple Fields of OutputTypeParameterMismatch
TraitNotObjectSafe(DefId)
Tuple Fields of TraitNotObjectSafe
0: DefId
NotConstEvaluatable(NotConstEvaluatable)
Tuple Fields of NotConstEvaluatable
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for SelectionError<'tcx>
impl<'tcx> !Send for SelectionError<'tcx>
impl<'tcx> !Sync for SelectionError<'tcx>
impl<'tcx> Unpin for SelectionError<'tcx>
impl<'tcx> !UnwindSafe for SelectionError<'tcx>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn subst_spanned(
self,
tcx: TyCtxt<'tcx>,
substs: &[GenericArg<'tcx>],
span: Option<Span>
) -> T
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: 88 bytes
Size for each variant:
Unimplemented
: 0 bytesOutputTypeParameterMismatch
: 87 bytesTraitNotObjectSafe
: 11 bytesNotConstEvaluatable
: 1 byteOverflow
: 0 bytesErrorReporting
: 0 bytes