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