pub trait DefIdTree: Copy {
    fn parent(self, id: DefId) -> Option<DefId>;

    fn local_parent(self, id: LocalDefId) -> Option<LocalDefId> { ... }
    fn is_descendant_of(self, descendant: DefId, ancestor: DefId) -> bool { ... }
}

Required Methods

Provided Methods

Implementors