Enum rustc::hir::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?
Variants
Plain(Ident)
🔬 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
.
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?
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]
impl ParamName
pub fn ident(&self) -> Ident
[src]
pub fn ident(&self) -> Ident
🔬 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?
pub fn modern(&self) -> ParamName
[src]
pub fn modern(&self) -> ParamName
🔬 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]
impl Debug for ParamName
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ParamName
[src]
impl Clone for ParamName
fn clone(&self) -> ParamName
[src]
fn clone(&self) -> ParamName
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for ParamName
[src]
impl PartialEq for ParamName
fn eq(&self, other: &ParamName) -> bool
[src]
fn eq(&self, other: &ParamName) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ParamName) -> bool
[src]
fn ne(&self, other: &ParamName) -> bool
This method tests for !=
.
impl Eq for ParamName
[src]
impl Eq for ParamName
fn assert_receiver_is_total_eq(&self)
[src]
fn assert_receiver_is_total_eq(&self)
impl Encodable for ParamName
[src]
impl Encodable for ParamName
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
[src]
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
🔬 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]
impl Decodable for ParamName
fn decode<__D: Decoder>(d: &mut __D) -> Result<ParamName, __D::Error>
[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<ParamName, __D::Error>
🔬 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]
impl Hash for ParamName
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Copy for ParamName
[src]
impl Copy for ParamName
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for ParamName
[src]
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for ParamName
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)
[src]
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)
🔬 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?