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 ParamNamepub 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 ParamNamefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for ParamName[src]
impl Clone for ParamNamefn clone(&self) -> ParamName[src]
fn clone(&self) -> ParamNameReturns 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 ParamNamefn eq(&self, other: &ParamName) -> bool[src]
fn eq(&self, other: &ParamName) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for ParamName[src]
impl Eq for ParamNamefn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)impl Encodable for ParamName[src]
impl Encodable for ParamNamefn 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 ParamNamefn 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 ParamNamefn 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 ParamNameimpl<'a, 'tcx> HashStable<StableHashingContext<'a>> for ParamName[src]
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for ParamNamefn 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?