Struct rustc_middle::hir::ModuleItems [−][src]
pub struct ModuleItems {
submodules: Box<[LocalDefId]>,
items: Box<[ItemId]>,
trait_items: Box<[TraitItemId]>,
impl_items: Box<[ImplItemId]>,
foreign_items: Box<[ForeignItemId]>,
}Expand description
Gather the LocalDefId for each item-like within a module, including items contained within bodies. The Ids are in visitor order. This is used to partition a pass between modules.
Fields
submodules: Box<[LocalDefId]>items: Box<[ItemId]>trait_items: Box<[TraitItemId]>impl_items: Box<[ImplItemId]>foreign_items: Box<[ForeignItemId]>Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ModuleItems
impl Send for ModuleItems
impl Sync for ModuleItems
impl Unpin for ModuleItems
impl UnwindSafe for ModuleItems
Blanket Implementations
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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: 80 bytes