pub struct ModuleInfo {
pub path: Vec<String>,
pub role: Role,
pub file: FileId,
pub items: BTreeMap<String, DefId>,
}Expand description
Facts about a module after resolution.
Fields§
§path: Vec<String>The module path.
role: RoleWhat the module is for.
file: FileIdThe source file.
items: BTreeMap<String, DefId>Top-level names declared in the module.
Trait Implementations§
Source§impl Clone for ModuleInfo
impl Clone for ModuleInfo
Auto Trait Implementations§
impl Freeze for ModuleInfo
impl RefUnwindSafe for ModuleInfo
impl Send for ModuleInfo
impl Sync for ModuleInfo
impl Unpin for ModuleInfo
impl UnsafeUnpin for ModuleInfo
impl UnwindSafe for ModuleInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more