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]

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