Struct syntax::ast::PathSegmentExperimental [-]  [+] [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 Show for PathSegment

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

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)