pub struct Module {
pub path: ModulePath,
pub source_file: PathBuf,
pub kind: ModuleKind,
}Expand description
A module within a crate
Fields§
§path: ModulePathFully qualified path (e.g., “crate”, alpha::delta)
source_file: PathBufAbsolute path to the source file
kind: ModuleKindWhether this is root, inline, or external
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
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