pub struct ConstantId(/* private fields */);
Expand description
An interned Id for Constant
.
Implementations§
Trait Implementations§
Source§impl Clone for ConstantId
impl Clone for ConstantId
Source§fn clone(&self) -> ConstantId
fn clone(&self) -> ConstantId
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 ConstantId
impl Debug for ConstantId
Source§impl Hash for ConstantId
impl Hash for ConstantId
Source§impl InternKey for ConstantId
impl InternKey for ConstantId
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 ConstantId
impl PartialEq for ConstantId
impl Copy for ConstantId
impl Eq for ConstantId
impl StructuralPartialEq for ConstantId
Auto Trait Implementations§
impl Freeze for ConstantId
impl RefUnwindSafe for ConstantId
impl Send for ConstantId
impl Sync for ConstantId
impl Unpin for ConstantId
impl UnwindSafe for ConstantId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§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.