pub struct Key(/* private fields */);Expand description
Represents a key in the IDR.
Properties:
- non-zero.
- always 64bit, even on 32bit platforms.
- contains reserved bits, generation, page and slot indexes.
See Config for more details.
Trait Implementations§
Source§impl From<Key> for NonZeroU64
impl From<Key> for NonZeroU64
Source§fn from(key: Key) -> NonZeroU64
fn from(key: Key) -> NonZeroU64
Converts to this type from the input type.
Source§impl From<NonZero<u64>> for Key
impl From<NonZero<u64>> for Key
Source§fn from(raw: NonZeroU64) -> Self
fn from(raw: NonZeroU64) -> Self
Converts to this type from the input type.
Source§impl Ord for Key
impl Ord for Key
Source§impl PartialOrd for Key
impl PartialOrd for Key
impl Copy for Key
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
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