Variants
Plain(Ident)
Some user-given name like T or 'x.
Fresh(usize)
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 u32in that case, we rewrite to
impl<'f> Foo for &'f u32
impl<'f> Foo<'f> for u32where 'f is something like Fresh(0). The indices are
unique per impl, but not necessarily continuous.
Error
Indicates an illegal name was given and an error has been
reported (so we should squelch other derived errors). Occurs
when, e.g., '_ is used in the wrong place.
Implementations
Trait Implementations
sourceimpl<__CTX> HashStable<__CTX> for ParamName where
__CTX: HashStableContext,
impl<__CTX> HashStable<__CTX> for ParamName where
__CTX: HashStableContext,
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
impl Copy for ParamName
impl Eq for ParamName
impl StructuralEq for ParamName
impl StructuralPartialEq for ParamName
Auto Trait Implementations
impl RefUnwindSafe for ParamName
impl !Send for ParamName
impl !Sync for ParamName
impl Unpin for ParamName
impl UnwindSafe for ParamName
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes
Size for each variant:
Plain: 12 bytesFresh: 12 bytesError: 0 bytes