Trait DefIdTree
rustc_middle::ty
pub trait DefIdTree: Copy { fn parent(self, id: DefId) -> Option<DefId>; fn is_descendant_of(self, descendant: DefId, ancestor: DefId) -> bool { ... } }
fn parent(self, id: DefId) -> Option<DefId>
fn is_descendant_of(self, descendant: DefId, ancestor: DefId) -> bool
impl<'tcx> DefIdTree for TyCtxt<'tcx>