[−][src]Trait rustc_middle::ty::DefIdTree

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

    pub fn is_descendant_of(
        self,
        mut descendant: DefId,
        ancestor: DefId
    ) -> bool { ... } }

Required methods

pub fn parent(self, id: DefId) -> Option<DefId>[src]

Loading content...

Provided methods

pub fn is_descendant_of(self, mut descendant: DefId, ancestor: DefId) -> bool[src]

Loading content...

Implementors

impl<'tcx> DefIdTree for TyCtxt<'tcx>[src]

Loading content...