pub struct Const(/* private fields */);
Expand description
Interned handle for a ConstDef
(a constant value).
Trait Implementations§
source§impl From<Const> for DiagMsgPart
impl From<Const> for DiagMsgPart
source§fn from(original: Const) -> DiagMsgPart
fn from(original: Const) -> DiagMsgPart
Converts to this type from the input type.
source§impl PartialEq<Const> for Const
impl PartialEq<Const> for Const
impl Copy for Const
impl Eq for Const
impl StructuralEq for Const
impl StructuralPartialEq for Const
Auto Trait Implementations§
impl RefUnwindSafe for Const
impl Send for Const
impl Sync for Const
impl Unpin for Const
impl UnwindSafe for Const
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<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.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.