Struct rustc_hir::Impl [−][src]
pub struct Impl<'hir> {
pub unsafety: Unsafety,
pub polarity: ImplPolarity,
pub defaultness: Defaultness,
pub defaultness_span: Option<Span>,
pub constness: Constness,
pub generics: Generics<'hir>,
pub of_trait: Option<TraitRef<'hir>>,
pub self_ty: &'hir Ty<'hir>,
pub items: &'hir [ImplItemRef<'hir>],
}Fields
unsafety: Unsafetypolarity: ImplPolaritydefaultness: Defaultnessdefaultness_span: Option<Span>constness: Constnessgenerics: Generics<'hir>of_trait: Option<TraitRef<'hir>>Expand description
The trait being implemented, if any.
self_ty: &'hir Ty<'hir>items: &'hir [ImplItemRef<'hir>]Trait Implementations
impl<'hir, __CTX> HashStable<__CTX> for Impl<'hir> where
__CTX: HashStableContext, [src]
impl<'hir, __CTX> HashStable<__CTX> for Impl<'hir> where
__CTX: HashStableContext, [src]