Type Alias rustc_hir::UsePath

source ·
pub type UsePath<'hir> = Path<'hir, SmallVec<[Res; 3]>>;
Expand description

Up to three resolutions for type, value and macro namespaces.

Aliased Type§

struct UsePath<'hir> {
    pub span: Span,
    pub res: SmallVec<[Res<HirId>; 3]>,
    pub segments: &'hir [PathSegment<'hir>],
}

Fields§

§span: Span§res: SmallVec<[Res<HirId>; 3]>

The resolution for the path.

§segments: &'hir [PathSegment<'hir>]

The segments in the path: the things separated by ::.

Trait Implementations§

source§

impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for UsePath<'tcx>

source§

fn allocate_on<'a>(self, arena: &'a Arena<'tcx>) -> &'a mut Self

source§

fn allocate_from_iter<'a>( arena: &'a Arena<'tcx>, iter: impl IntoIterator<Item = Self> ) -> &'a mut [Self]

source§

impl<'hir, R: Clone> Clone for Path<'hir, R>

source§

fn clone(&self) -> Path<'hir, R>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'hir, R: Debug> Debug for Path<'hir, R>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'hir, R, __CTX> HashStable<__CTX> for Path<'hir, R>where __CTX: HashStableContext, R: HashStable<__CTX>,

source§

fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)

source§

impl<'hir, R: Copy> Copy for Path<'hir, R>

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: 72 bytes