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>
impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for UsePath<'tcx>
fn allocate_on<'a>(self, arena: &'a Arena<'tcx>) -> &'a mut Self
fn allocate_from_iter<'a>( arena: &'a Arena<'tcx>, iter: impl IntoIterator<Item = Self> ) -> &'a mut [Self]
source§impl<'hir, R, __CTX> HashStable<__CTX> for Path<'hir, R>where
__CTX: HashStableContext,
R: HashStable<__CTX>,
impl<'hir, R, __CTX> HashStable<__CTX> for Path<'hir, R>where __CTX: HashStableContext, R: HashStable<__CTX>,
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
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