Struct hir_ty::db::InternedTypeOrConstParamId
source · pub struct InternedTypeOrConstParamId(/* private fields */);
Trait Implementations§
source§impl Clone for InternedTypeOrConstParamId
impl Clone for InternedTypeOrConstParamId
source§fn clone(&self) -> InternedTypeOrConstParamId
fn clone(&self) -> InternedTypeOrConstParamId
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 InternedTypeOrConstParamId
impl Debug for InternedTypeOrConstParamId
source§impl Hash for InternedTypeOrConstParamId
impl Hash for InternedTypeOrConstParamId
source§impl InternKey for InternedTypeOrConstParamId
impl InternKey for InternedTypeOrConstParamId
source§fn from_intern_id(v: InternId) -> Self
fn from_intern_id(v: InternId) -> Self
Create an instance of the intern-key from a
u32
value.source§fn as_intern_id(&self) -> InternId
fn as_intern_id(&self) -> InternId
Extract the
u32
with which the intern-key was created.source§impl PartialEq for InternedTypeOrConstParamId
impl PartialEq for InternedTypeOrConstParamId
source§fn eq(&self, other: &InternedTypeOrConstParamId) -> bool
fn eq(&self, other: &InternedTypeOrConstParamId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for InternedTypeOrConstParamId
impl Eq for InternedTypeOrConstParamId
impl StructuralPartialEq for InternedTypeOrConstParamId
Auto Trait Implementations§
impl Freeze for InternedTypeOrConstParamId
impl RefUnwindSafe for InternedTypeOrConstParamId
impl Send for InternedTypeOrConstParamId
impl Sync for InternedTypeOrConstParamId
impl Unpin for InternedTypeOrConstParamId
impl UnwindSafe for InternedTypeOrConstParamId
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.