The actual data stored in a
Returns the key data as a 64-bit integer. No guarantees about its value
are made other than that passing it to
will return a key equal to the original.
With this you can easily pass slot map keys as opaque handles to foreign code. After you get them back you can confidently use them in your slot map without worrying about unsafe behavior as you would with passing and receiving back references or pointers.
This is not a substitute for proper serialization, use
that. If you are not doing FFI, you almost surely do not need this
value is a value received from
k.as_ffi(), returns a key equal
k. Otherwise the behavior is safe but unspecified.
impl From<KeyData> for DefaultKey[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where1.3.0[src]
impl PartialOrd<KeyData> for KeyData[src]
fn partial_cmp(&self, other: &KeyData) -> Option<Ordering>[src]
impl StructuralEq for KeyData[src]
impl StructuralPartialEq for KeyData[src]
impl RefUnwindSafe for KeyData
impl UnwindSafe for KeyData
type Owned = T
The resulting type after obtaining ownership.
pub fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.