Struct pill_core::PillSlotMapKeyData [−][src]
pub struct PillSlotMapKeyData {
pub index: u32,
pub version: NonZeroU32,
}Fields
index: u32version: NonZeroU32Implementations
Returns the key data as a 64-bit integer. No guarantees about its value
are made other than that passing it to from_ffi
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 serde for
that. If you are not doing FFI, you almost surely do not need this
function.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for PillSlotMapKeyData
impl Send for PillSlotMapKeyData
impl Sync for PillSlotMapKeyData
impl Unpin for PillSlotMapKeyData
impl UnwindSafe for PillSlotMapKeyData
Blanket Implementations
Mutably borrows from an owned value. Read more