pub struct OwnerInfo<'hir> {
pub nodes: OwnerNodes<'hir>,
pub parenting: LocalDefIdMap<ItemLocalId>,
pub attrs: AttributeMap<'hir>,
pub trait_map: ItemLocalMap<Box<[TraitCandidate]>>,
}
Expand description
Full information resulting from lowering an AST node.
Fields§
§nodes: OwnerNodes<'hir>
Contents of the HIR.
parenting: LocalDefIdMap<ItemLocalId>
Map from each nested owner to its parent’s local id.
attrs: AttributeMap<'hir>
Collected attributes of the HIR nodes.
trait_map: ItemLocalMap<Box<[TraitCandidate]>>
Map indicating what traits are in scope for places where this is relevant; generated by resolve.
Implementations§
Trait Implementations§
source§impl<'tcx> ArenaAllocatable<'tcx> for OwnerInfo<'tcx>
impl<'tcx> ArenaAllocatable<'tcx> for OwnerInfo<'tcx>
fn allocate_on(self, arena: &'tcx Arena<'tcx>) -> &'tcx mut Self
fn allocate_from_iter( arena: &'tcx Arena<'tcx>, iter: impl IntoIterator<Item = Self>, ) -> &'tcx mut [Self]
source§impl<'hir, __CTX> HashStable<__CTX> for OwnerInfo<'hir>where
__CTX: HashStableContext,
impl<'hir, __CTX> HashStable<__CTX> for OwnerInfo<'hir>where
__CTX: HashStableContext,
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
Auto Trait Implementations§
impl<'hir> DynSend for OwnerInfo<'hir>
impl<'hir> DynSync for OwnerInfo<'hir>
impl<'hir> Freeze for OwnerInfo<'hir>
impl<'hir> !RefUnwindSafe for OwnerInfo<'hir>
impl<'hir> !Send for OwnerInfo<'hir>
impl<'hir> !Sync for OwnerInfo<'hir>
impl<'hir> Unpin for OwnerInfo<'hir>
impl<'hir> !UnwindSafe for OwnerInfo<'hir>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
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: 184 bytes