Enum rustc::hir::ParamName[][src]

pub enum ParamName {
    Plain(Ident),
    Fresh(usize),
}
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Variants

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Some user-given name like T or 'x.

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Synthetic name generated when user elided a lifetime in an impl header, e.g. the lifetimes in cases like these:

impl Foo for &u32
impl Foo<'_> for u32

in that case, we rewrite to

impl<'f> Foo for &'f u32
impl<'f> Foo<'f> for u32

where 'f is something like Fresh(0). The indices are unique per impl, but not necessarily continuous.

Methods

impl ParamName
[src]

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Trait Implementations

impl Debug for ParamName
[src]

Formats the value using the given formatter. Read more

impl Clone for ParamName
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ParamName
[src]

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

This method tests for !=.

impl Eq for ParamName
[src]

impl Encodable for ParamName
[src]

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

impl Decodable for ParamName
[src]

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

impl Hash for ParamName
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Copy for ParamName
[src]

impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for ParamName
[src]

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Auto Trait Implementations

impl !Send for ParamName

impl !Sync for ParamName