Enum rustc_hir::OwnerNode [−][src]
pub enum OwnerNode<'hir> {
Item(&'hir Item<'hir>),
ForeignItem(&'hir ForeignItem<'hir>),
TraitItem(&'hir TraitItem<'hir>),
ImplItem(&'hir ImplItem<'hir>),
Crate(&'hir Mod<'hir>),
}
Variants
Item(&'hir Item<'hir>)
Tuple Fields of Item
0: &'hir Item<'hir>
ForeignItem(&'hir ForeignItem<'hir>)
Tuple Fields of ForeignItem
0: &'hir ForeignItem<'hir>
TraitItem(&'hir TraitItem<'hir>)
Tuple Fields of TraitItem
0: &'hir TraitItem<'hir>
ImplItem(&'hir ImplItem<'hir>)
Tuple Fields of ImplItem
0: &'hir ImplItem<'hir>
Crate(&'hir Mod<'hir>)
Tuple Fields of Crate
0: &'hir Mod<'hir>
Implementations
Trait Implementations
Auto Trait Implementations
impl<'hir> !RefUnwindSafe for OwnerNode<'hir>
impl<'hir> !UnwindSafe for OwnerNode<'hir>
Blanket Implementations
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: 16 bytes
Size for each variant:
Item
: 8 bytesForeignItem
: 8 bytesTraitItem
: 8 bytesImplItem
: 8 bytesCrate
: 8 bytes