Enum ra_ap_hir_def::GenericParamId
source · pub enum GenericParamId {
TypeParamId(TypeParamId),
ConstParamId(ConstParamId),
LifetimeParamId(LifetimeParamId),
}
Expand description
A generic param
Variants§
Trait Implementations§
source§impl Clone for GenericParamId
impl Clone for GenericParamId
source§fn clone(&self) -> GenericParamId
fn clone(&self) -> GenericParamId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GenericParamId
impl Debug for GenericParamId
source§impl From<ConstParamId> for GenericParamId
impl From<ConstParamId> for GenericParamId
source§fn from(it: ConstParamId) -> GenericParamId
fn from(it: ConstParamId) -> GenericParamId
Converts to this type from the input type.
source§impl From<GenericParamId> for AttrDefId
impl From<GenericParamId> for AttrDefId
source§fn from(it: GenericParamId) -> AttrDefId
fn from(it: GenericParamId) -> AttrDefId
Converts to this type from the input type.
source§impl From<LifetimeParamId> for GenericParamId
impl From<LifetimeParamId> for GenericParamId
source§fn from(it: LifetimeParamId) -> GenericParamId
fn from(it: LifetimeParamId) -> GenericParamId
Converts to this type from the input type.
source§impl From<TypeParamId> for GenericParamId
impl From<TypeParamId> for GenericParamId
source§fn from(it: TypeParamId) -> GenericParamId
fn from(it: TypeParamId) -> GenericParamId
Converts to this type from the input type.
source§impl Hash for GenericParamId
impl Hash for GenericParamId
source§impl PartialEq<GenericParamId> for GenericParamId
impl PartialEq<GenericParamId> for GenericParamId
source§fn eq(&self, other: &GenericParamId) -> bool
fn eq(&self, other: &GenericParamId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for GenericParamId
impl Eq for GenericParamId
impl StructuralEq for GenericParamId
impl StructuralPartialEq for GenericParamId
Auto Trait Implementations§
impl RefUnwindSafe for GenericParamId
impl Send for GenericParamId
impl Sync for GenericParamId
impl Unpin for GenericParamId
impl UnwindSafe for GenericParamId
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.