Trait rustc_middle::ty::DefIdTree
source · pub trait DefIdTree: Copy {
fn opt_parent(self, id: DefId) -> Option<DefId>;
fn parent(self, id: DefId) -> DefId { ... }
fn opt_local_parent(self, id: LocalDefId) -> Option<LocalDefId> { ... }
fn local_parent(self, id: LocalDefId) -> LocalDefId { ... }
fn is_descendant_of(self, descendant: DefId, ancestor: DefId) -> bool { ... }
}
Required Methods
source
fn opt_parent(self, id: DefId) -> Option<DefId>
Provided Methods
source
fn opt_local_parent(self, id: LocalDefId) -> Option<LocalDefId>
source
fn local_parent(self, id: LocalDefId) -> LocalDefId
source