rustc_hir::hir

Type Alias 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; 3]>,
    pub segments: &'hir [PathSegment<'hir>],
}

Fields§

§span: Span§res: SmallVec<[Res; 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> for UsePath<'tcx>

Source§

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

Source§

fn allocate_from_iter( arena: &'tcx Arena<'tcx>, iter: impl IntoIterator<Item = Self>, ) -> &'tcx 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