pub struct LoadedPackage {
pub program: Program,
pub imports_by_file: BTreeMap<String, BTreeSet<String>>,
}Expand description
A package loaded as one unit by load_package.
Fields§
§program: ProgramEvery file’s declarations, each exactly once, all prefix-mangled.
imports_by_file: BTreeMap<String, BTreeSet<String>>The stdlib modules each file imports itself, keyed by the file’s
path relative to the package root (src/schema.lex). Unlike
program, this is per-file: the flattening entry points cannot
report it, because by the time they return, a file’s imports and
those of everything it imports are one undifferentiated list.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoadedPackage
impl RefUnwindSafe for LoadedPackage
impl Send for LoadedPackage
impl Sync for LoadedPackage
impl Unpin for LoadedPackage
impl UnsafeUnpin for LoadedPackage
impl UnwindSafe for LoadedPackage
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