Struct rustc_resolve::ResolverTree
source · pub(crate) struct ResolverTree<'a>(pub(crate) &'a Untracked);
Expand description
A minimal subset of resolver that can implemenent DefIdTree
, sometimes
required to satisfy borrow checker by avoiding borrowing the whole resolver.
Tuple Fields§
§0: &'a Untracked
Trait Implementations§
source§impl<'a> Clone for ResolverTree<'a>
impl<'a> Clone for ResolverTree<'a>
source§fn clone(&self) -> ResolverTree<'a>
fn clone(&self) -> ResolverTree<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl DefIdTree for ResolverTree<'_>
impl DefIdTree for ResolverTree<'_>
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
impl<'a> Copy for ResolverTree<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ResolverTree<'a>
impl<'a> !Send for ResolverTree<'a>
impl<'a> !Sync for ResolverTree<'a>
impl<'a> Unpin for ResolverTree<'a>
impl<'a> !UnwindSafe for ResolverTree<'a>
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes