pub struct PathSegment {
pub ident: Ident,
pub parameters: PathParameters,
}Expand description
A segment of a path: an identifier, an optional lifetime, and a set of types.
E.g. std, String or Box<T>
Fields§
§ident: IdentThe identifier portion of this path segment.
parameters: PathParametersType/lifetime parameters attached to this path. They come in
two flavors: Path<A,B,C> and Path(A,B) -> C. Note that
this is more than just simple syntactic sugar; the use of
parens affects the region binding rules, so we preserve the
distinction.
Trait Implementations§
Source§impl Clone for PathSegment
impl Clone for PathSegment
Source§fn clone(&self) -> PathSegment
fn clone(&self) -> PathSegment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> From<T> for PathSegment
impl<T> From<T> for PathSegment
Source§impl Synom for PathSegment
impl Synom for PathSegment
Auto Trait Implementations§
impl Freeze for PathSegment
impl RefUnwindSafe for PathSegment
impl !Send for PathSegment
impl !Sync for PathSegment
impl Unpin for PathSegment
impl UnwindSafe for PathSegment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more