Struct rustc_hir::hir::Path [−][src]
pub struct Path<'hir> {
pub span: Span,
pub res: Res,
pub segments: &'hir [PathSegment<'hir>],
}Expand description
A Path is essentially Rust’s notion of a name; for instance,
std::cmp::PartialEq. It’s represented as a sequence of identifiers,
along with a bunch of supporting information.
Fields
span: Spanres: ResExpand description
The resolution for the path.
segments: &'hir [PathSegment<'hir>]Expand description
The segments in the path: the things separated by ::.
Implementations
Trait Implementations
impl<'hir, __CTX> HashStable<__CTX> for Path<'hir> where
__CTX: HashStableContext, [src]
impl<'hir, __CTX> HashStable<__CTX> for Path<'hir> where
__CTX: HashStableContext, [src]