pub struct ImplItem<'hir> {
pub ident: Ident,
pub def_id: LocalDefId,
pub vis: Visibility<'hir>,
pub defaultness: Defaultness,
pub generics: Generics<'hir>,
pub kind: ImplItemKind<'hir>,
pub span: Span,
}Expand description
Represents anything within an impl block.
Fields
ident: Identdef_id: LocalDefIdvis: Visibility<'hir>defaultness: Defaultnessgenerics: Generics<'hir>kind: ImplItemKind<'hir>span: SpanImplementations
sourceimpl ImplItem<'_>
impl ImplItem<'_>
pub fn hir_id(&self) -> HirId
pub fn impl_item_id(&self) -> ImplItemId
Trait Implementations
sourceimpl<HirCtx: HashStableContext> HashStable<HirCtx> for ImplItem<'_>
impl<HirCtx: HashStableContext> HashStable<HirCtx> for ImplItem<'_>
fn hash_stable(&self, hcx: &mut HirCtx, hasher: &mut StableHasher)
Auto Trait Implementations
impl<'hir> RefUnwindSafe for ImplItem<'hir>
impl<'hir> !Send for ImplItem<'hir>
impl<'hir> !Sync for ImplItem<'hir>
impl<'hir> Unpin for ImplItem<'hir>
impl<'hir> UnwindSafe for ImplItem<'hir>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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: 152 bytes