Struct rustc_ap_rustc_ast::ast::Path [−][src]
pub struct Path { pub span: Span, pub segments: Vec<PathSegment>, pub tokens: Option<LazyTokenStream>, }
Expand description
A “Path” is essentially Rust’s notion of a name.
It’s represented as a sequence of identifiers, along with a bunch of supporting information.
E.g., std::cmp::PartialEq
.
Fields
span: Span
segments: Vec<PathSegment>
The segments in the path: the things separated by ::
.
Global paths begin with kw::PathRoot
.
tokens: Option<LazyTokenStream>
Implementations
Trait Implementations
This is true
if this AstLike
might support ‘custom’ (proc-macro) inner
attributes. Attributes like #![cfg]
and #![cfg_attr]
are not
considered ‘custom’ attributes Read more
Auto Trait Implementations
impl !RefUnwindSafe for Path
impl !UnwindSafe for Path
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V