Struct rustc_hir::hir::ForeignItem
source · [−]pub struct ForeignItem<'hir> {
pub ident: Ident,
pub kind: ForeignItemKind<'hir>,
pub def_id: LocalDefId,
pub span: Span,
pub vis: Visibility<'hir>,
}Fields
ident: Identkind: ForeignItemKind<'hir>def_id: LocalDefIdspan: Spanvis: Visibility<'hir>Implementations
sourceimpl ForeignItem<'_>
impl ForeignItem<'_>
pub fn hir_id(&self) -> HirId
pub fn foreign_item_id(&self) -> ForeignItemId
Trait Implementations
sourceimpl<'hir> Debug for ForeignItem<'hir>
impl<'hir> Debug for ForeignItem<'hir>
sourceimpl<HirCtx: HashStableContext> HashStable<HirCtx> for ForeignItem<'_>
impl<HirCtx: HashStableContext> HashStable<HirCtx> for ForeignItem<'_>
fn hash_stable(&self, hcx: &mut HirCtx, hasher: &mut StableHasher)
Auto Trait Implementations
impl<'hir> RefUnwindSafe for ForeignItem<'hir>
impl<'hir> !Send for ForeignItem<'hir>
impl<'hir> !Sync for ForeignItem<'hir>
impl<'hir> Unpin for ForeignItem<'hir>
impl<'hir> UnwindSafe for ForeignItem<'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: 136 bytes