Struct slotmap::DefaultKey
source · #[repr(transparent)]pub struct DefaultKey(_);
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<DefaultKey> for DefaultKey
impl PartialEq<DefaultKey> for DefaultKey
source§fn eq(&self, other: &DefaultKey) -> bool
fn eq(&self, other: &DefaultKey) -> bool
source§impl PartialOrd<DefaultKey> for DefaultKey
impl PartialOrd<DefaultKey> for DefaultKey
source§fn partial_cmp(&self, other: &DefaultKey) -> Option<Ordering>
fn partial_cmp(&self, other: &DefaultKey) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more