[−][src]Function rustc_typeck::check::upvar::determine_place_ancestry_relation
pub(in check::upvar) fn determine_place_ancestry_relation<'tcx>(
place_a: &Place<'tcx>,
place_b: &Place<'tcx>
) -> PlaceAncestryRelation
Determines the Ancestry relationship of Place A relative to Place B
PlaceAncestryRelation::Ancestor implies Place A is ancestor of Place B
PlaceAncestryRelation::Descendant implies Place A is descendant of Place B
PlaceAncestryRelation::Divergent implies neither of them is the ancestor of the other.