[−][src]Enum rustc_resolve::ModuleKind
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:
- A normal module ‒ either
mod from_file;ormod from_block { }. - A trait or an enum (it implicitly contains associated types, methods and variant constructors).
Implementations
impl ModuleKind[src]
Auto Trait Implementations
impl RefUnwindSafe for ModuleKind
impl Send for ModuleKind
impl Sync for ModuleKind
impl Unpin for ModuleKind
impl UnwindSafe for ModuleKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,