Struct ra_ap_hir_def::item_tree::Import [−][src]
pub struct Import { pub visibility: RawVisibilityId, pub ast_id: FileAstId<Use>, pub use_tree: UseTree, }
Fields
visibility: RawVisibilityId
ast_id: FileAstId<Use>
use_tree: UseTree
Implementations
pub fn use_tree_to_ast(
&self,
db: &dyn DefDatabase,
file_id: HirFileId,
index: Idx<UseTree>
) -> UseTree
pub fn use_tree_to_ast(
&self,
db: &dyn DefDatabase,
file_id: HirFileId,
index: Idx<UseTree>
) -> UseTree
Maps a UseTree
contained in this import back to its AST node.
Trait Implementations
Looks up an instance of Self
in an item tree.
Downcasts a ModItem
to a FileItemTreeId
specific to this type.
Upcasts a FileItemTreeId
to a generic ModItem
.
Auto Trait Implementations
impl RefUnwindSafe for Import
impl UnwindSafe for Import
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.