Trait hir_def::item_tree::ItemTreeNode

source ·
pub trait ItemTreeNode: Clone {
    type Source: AstIdNode;

    // Required methods
    fn ast_id(&self) -> FileAstId<Self::Source>;
    fn lookup(tree: &ItemTree, index: Idx<Self>) -> &Self;
    fn attr_owner(id: FileItemTreeId<Self>) -> AttrOwner;
}
Expand description

Trait implemented by all nodes in the item tree.

Required Associated Types§

source

type Source: AstIdNode

Required Methods§

source

fn ast_id(&self) -> FileAstId<Self::Source>

source

fn lookup(tree: &ItemTree, index: Idx<Self>) -> &Self

Looks up an instance of Self in an item tree.

source

fn attr_owner(id: FileItemTreeId<Self>) -> AttrOwner

Object Safety§

This trait is not object safe.

Implementors§