Struct ra_ap_hir_def::import_map::ImportMap [−][src]
pub struct ImportMap { /* fields omitted */ }
Expand description
A map from publicly exported items to the path needed to import/name them from a downstream crate.
Reexports of items are taken into account, ie. if something is exported under multiple names, the one with the shortest import path will be used.
Note that all paths are relative to the containing crate’s root, so the crate name still needs
to be prepended to the ModPath
before the path is valid.
Implementations
Returns the ModPath
needed to import/mention item
, relative to this crate’s root.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ImportMap
impl UnwindSafe for ImportMap
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.