Struct syntax::ast::PathSegment[src]

pub struct PathSegment {
    pub identifier: Ident,
    pub lifetimes: Vec<Lifetime>,
    pub types: OwnedSlice<P<Ty>>,
}

A segment of a path: an identifier, an optional lifetime, and a set of types.

Fields

identifier

The identifier portion of this path segment.

lifetimes

The lifetime parameters for this path segment.

types

The type parameters for this path segment, if present.

Trait Implementations

Derived Implementations

impl<__S: Writer> Hash<__S> for PathSegment

fn hash(&self, __arg_0: &mut __S)

impl<__D: Decoder<__E>, __E> Decodable<__D, __E> for PathSegment

fn decode(__arg_0: &mut __D) -> Result<PathSegment, __E>

impl<__S: Encoder<__E>, __E> Encodable<__S, __E> for PathSegment

fn encode(&self, __arg_0: &mut __S) -> Result<(), __E>

impl Eq for PathSegment

fn assert_receiver_is_total_eq(&self)

impl PartialEq for PathSegment

fn eq(&self, __arg_0: &PathSegment) -> bool

fn ne(&self, __arg_0: &PathSegment) -> bool

impl Clone for PathSegment

fn clone(&self) -> PathSegment

fn clone_from(&mut self, source: &Self)