Struct syntax::ast::PathSegmentUnstable [-] [+] [src]

pub struct PathSegment {
    pub identifier: Ident,
    pub parameters: PathParameters,
}

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

Fields

identifier

The identifier portion of this path segment.

parameters

Type/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

Derived Implementations

impl Debug for PathSegment

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for PathSegment

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Decodable for PathSegment

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

impl Encodable for PathSegment

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

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)