Struct ra_ap_hir_def::nameres::ModuleData[][src]

pub struct ModuleData {
    pub parent: Option<LocalModuleId>,
    pub children: FxHashMap<Name, LocalModuleId>,
    pub scope: ItemScope,
    pub origin: ModuleOrigin,
}

Fields

parent: Option<LocalModuleId>children: FxHashMap<Name, LocalModuleId>scope: ItemScopeorigin: ModuleOrigin

Where does this module come from?

Implementations

Returns a node which defines this module. That is, a file or a mod foo {} with items.

Returns a node which declares this module, either a mod foo; or a mod foo {}. None for the crate root or block.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.