Struct slotmap::DefaultKey
source · pub struct DefaultKey(/* private fields */);
Expand description
The default slot map key type.
Trait Implementations§
source§impl Clone for DefaultKey
impl Clone for DefaultKey
source§fn clone(&self) -> DefaultKey
fn clone(&self) -> DefaultKey
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 DefaultKey
impl Debug for DefaultKey
source§impl Default for DefaultKey
impl Default for DefaultKey
source§fn default() -> DefaultKey
fn default() -> DefaultKey
Returns the “default value” for a type. Read more
source§impl From<KeyData> for DefaultKey
impl From<KeyData> for DefaultKey
source§impl Hash for DefaultKey
impl Hash for DefaultKey
source§impl Key for DefaultKey
impl Key for DefaultKey
source§fn null() -> Self
fn null() -> Self
Creates a new key that is always invalid and distinct from any non-null
key. A null key can only be created through this method (or default
initialization of keys made with
new_key_type!
, which calls this
method). Read moresource§impl Ord for DefaultKey
impl Ord for DefaultKey
source§fn cmp(&self, other: &DefaultKey) -> Ordering
fn cmp(&self, other: &DefaultKey) -> Ordering
1.21.0 · 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 DefaultKey
impl PartialEq for DefaultKey
source§impl PartialOrd for DefaultKey
impl PartialOrd for DefaultKey
impl Copy for DefaultKey
impl Eq for DefaultKey
impl StructuralPartialEq for DefaultKey
Auto Trait Implementations§
impl Freeze for DefaultKey
impl RefUnwindSafe for DefaultKey
impl Send for DefaultKey
impl Sync for DefaultKey
impl Unpin for DefaultKey
impl UnwindSafe for DefaultKey
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)