pub struct ConstantId(/* private fields */);Expand description
Index into a module’s constant pool.
Implementations§
Trait Implementations§
Source§impl Clone for ConstantId
impl Clone for ConstantId
Source§fn clone(&self) -> ConstantId
fn clone(&self) -> ConstantId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConstantId
Source§impl Debug for ConstantId
impl Debug for ConstantId
impl Eq for ConstantId
Source§impl Hash for ConstantId
impl Hash for ConstantId
Source§impl Ord for ConstantId
impl Ord for ConstantId
Source§fn cmp(&self, other: &ConstantId) -> Ordering
fn cmp(&self, other: &ConstantId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConstantId
impl PartialEq for ConstantId
Source§impl PartialOrd for ConstantId
impl PartialOrd 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 UnsafeUnpin 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