pub struct ModuleImports { /* private fields */ }Expand description
Per-module use tables for a scanned source tree, keyed by the module’s
canonical path segments (empty = crate root). The keys mirror the type
pool’s key prefixes, so a referencing item’s module — the pool key with
its terminal dropped — looks up directly.
Implementations§
Source§impl ModuleImports
impl ModuleImports
Sourcepub fn merge(&mut self, other: ModuleImports)
pub fn merge(&mut self, other: ModuleImports)
Fold another tree’s tables in. On a module-path collision the existing
entry wins, matching the pool’s “first root wins” merge policy in
src/clients/mod.rs.
Trait Implementations§
Source§impl Clone for ModuleImports
impl Clone for ModuleImports
Source§fn clone(&self) -> ModuleImports
fn clone(&self) -> ModuleImports
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModuleImports
impl Debug for ModuleImports
Source§impl Default for ModuleImports
impl Default for ModuleImports
Source§fn default() -> ModuleImports
fn default() -> ModuleImports
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModuleImports
impl RefUnwindSafe for ModuleImports
impl Send for ModuleImports
impl Sync for ModuleImports
impl Unpin for ModuleImports
impl UnsafeUnpin for ModuleImports
impl UnwindSafe for ModuleImports
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