Enum rustc_resolve::ModuleKind [−][src]
Variants
Block(NodeId)An anonymous module; e.g., just a block.
fn main() { fn f() {} // (1) { // This is an anonymous module f(); // This resolves to (2) as we are inside the block. fn f() {} // (2) } f(); // Resolves to (1) }
Any module with a name.
This could be:
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ModuleKindimpl Send for ModuleKindimpl Sync for ModuleKindimpl Unpin for ModuleKindimpl UnwindSafe for ModuleKindBlanket 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: 16 bytes