Struct rustc_mir_dataflow::ty::ImplHeader [−][src]
pub struct ImplHeader<'tcx> {
pub impl_def_id: DefId,
pub self_ty: &'tcx TyS<'tcx>,
pub trait_ref: Option<TraitRef<'tcx>>,
pub predicates: Vec<Predicate<'tcx>, Global>,
}Expand description
The “header” of an impl is everything outside the body: a Self type, a trait ref (in the case of a trait impl), and a set of predicates (from the bounds / where-clauses).
Fields
impl_def_id: DefIdself_ty: &'tcx TyS<'tcx>trait_ref: Option<TraitRef<'tcx>>predicates: Vec<Predicate<'tcx>, Global>Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for ImplHeader<'tcx>
impl<'tcx> !Send for ImplHeader<'tcx>
impl<'tcx> !Sync for ImplHeader<'tcx>
impl<'tcx> Unpin for ImplHeader<'tcx>
impl<'tcx> !UnwindSafe for ImplHeader<'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: 56 bytes