[−][src]Trait ra_ap_hir_def::item_tree::ItemTreeNode
Trait implemented by all item nodes in the item tree.
Associated Types
Loading content...Required methods
fn ast_id(&self) -> FileAstId<Self::Source>
fn lookup(tree: &ItemTree, index: Idx<Self>) -> &Self
Looks up an instance of Self
in an item tree.
fn id_from_mod_item(mod_item: ModItem) -> Option<FileItemTreeId<Self>>
Downcasts a ModItem
to a FileItemTreeId
specific to this type.
fn id_to_mod_item(id: FileItemTreeId<Self>) -> ModItem
Upcasts a FileItemTreeId
to a generic ModItem
.