Struct rustc_typeck::hir::PathSegment [] [src]

pub struct PathSegment {
    pub name: Symbol,
    pub parameters: PathParameters,
}
🔬 This is a nightly-only experimental API. (rustc_private)

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

Fields

🔬 This is a nightly-only experimental API. (rustc_private)

The identifier portion of this path segment.

🔬 This is a nightly-only experimental API. (rustc_private)

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.

Methods

impl PathSegment
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

Convert an identifier to the corresponding segment.

Trait Implementations

impl Decodable for PathSegment
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

impl PartialEq<PathSegment> for PathSegment
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for PathSegment
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Clone for PathSegment
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for PathSegment
[src]

impl Debug for PathSegment
[src]

Formats the value using the given formatter.

impl Encodable for PathSegment
[src]

🔬 This is a nightly-only experimental API. (rustc_private)