Struct ra_ap_hir::import_map::ImportInfo
source · pub struct ImportInfo {
pub path: ImportPath,
pub container: ModuleId,
pub is_trait_assoc_item: bool,
}
Expand description
Item import details stored in the ImportMap
.
Fields§
§path: ImportPath
A path that can be used to import the item, relative to the crate’s root.
container: ModuleId
The module containing this item.
is_trait_assoc_item: bool
Whether the import is a trait associated item or not.
Trait Implementations§
source§impl Clone for ImportInfo
impl Clone for ImportInfo
source§fn clone(&self) -> ImportInfo
fn clone(&self) -> ImportInfo
Returns a copy of the value. Read more
1.0.0 · 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 ImportInfo
impl Debug for ImportInfo
source§impl PartialEq<ImportInfo> for ImportInfo
impl PartialEq<ImportInfo> for ImportInfo
source§fn eq(&self, other: &ImportInfo) -> bool
fn eq(&self, other: &ImportInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ImportInfo
impl StructuralEq for ImportInfo
impl StructuralPartialEq for ImportInfo
Auto Trait Implementations§
impl RefUnwindSafe for ImportInfo
impl Send for ImportInfo
impl Sync for ImportInfo
impl Unpin for ImportInfo
impl UnwindSafe for ImportInfo
Blanket Implementations§
§impl<T> Cast for T
impl<T> Cast for T
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.