pub struct DefaultKey { /* private fields */ }Implementations§
Source§impl DefaultKey
impl DefaultKey
Sourcepub fn new(index: u32, generation: Generation, map_id: u64) -> Self
pub fn new(index: u32, generation: Generation, map_id: u64) -> Self
Create a new Key from index and generation
从 index 和 generation 创建新的 Key
Sourcepub fn decode(&self) -> (u32, Generation)
pub fn decode(&self) -> (u32, Generation)
Decode Key into index and generation
将 Key 解码为 index 和 generation
Trait Implementations§
Source§impl Clone for DefaultKey
impl Clone for DefaultKey
Source§fn clone(&self) -> DefaultKey
fn clone(&self) -> DefaultKey
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 DefaultKey
Source§impl Debug for DefaultKey
impl Debug for DefaultKey
impl Eq for DefaultKey
Source§impl Hash for DefaultKey
impl Hash for DefaultKey
Source§impl Key for DefaultKey
impl Key for DefaultKey
Source§impl PartialEq for DefaultKey
impl PartialEq for DefaultKey
Source§fn eq(&self, other: &DefaultKey) -> bool
fn eq(&self, other: &DefaultKey) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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