Struct rustc_hir::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>>

The trait being implemented, if any.

self_ty: &'hir Ty<'hir>items: &'hir [ImplItemRef<'hir>]

Trait Implementations

impl<'hir> Debug for Impl<'hir>[src]

impl<'hir, __CTX> HashStable<__CTX> for Impl<'hir> where
    __CTX: HashStableContext, 
[src]

Auto Trait Implementations

impl<'hir> RefUnwindSafe for Impl<'hir>

impl<'hir> !Send for Impl<'hir>

impl<'hir> !Sync for Impl<'hir>

impl<'hir> Unpin for Impl<'hir>

impl<'hir> UnwindSafe for Impl<'hir>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.