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§fn eq(&self, other: &DefaultKey) -> bool
fn eq(&self, other: &DefaultKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DefaultKey
impl PartialOrd 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 moreimpl Copy for DefaultKey
impl Eq for DefaultKey
impl StructuralEq for DefaultKey
impl StructuralPartialEq for DefaultKey
Auto Trait Implementations§
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