pub struct AmbiguousImports {
pub names: HashMap<String, Vec<String>>,
pub triggers: HashMap<String, Vec<String>>,
}Expand description
Names declared, and triggers provided or emitted, by more than one of a
file’s imported modules. Computed by multi-file checking; an unqualified
reference to one of these names cannot be attributed to a single import
(issue #15). Each entry maps the ambiguous name to the sorted use
aliases it could resolve to — one alias per distinct target file, so two
aliases for the same file are not ambiguous.
Fields§
§names: HashMap<String, Vec<String>>Declaration name → aliases of the (≥2) modules declaring it.
triggers: HashMap<String, Vec<String>>Trigger name → aliases of the (≥2) modules providing or emitting it.
Trait Implementations§
Source§impl Debug for AmbiguousImports
impl Debug for AmbiguousImports
Source§impl Default for AmbiguousImports
impl Default for AmbiguousImports
Source§fn default() -> AmbiguousImports
fn default() -> AmbiguousImports
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AmbiguousImports
impl RefUnwindSafe for AmbiguousImports
impl Send for AmbiguousImports
impl Sync for AmbiguousImports
impl Unpin for AmbiguousImports
impl UnsafeUnpin for AmbiguousImports
impl UnwindSafe for AmbiguousImports
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