pub struct MemoryManagerSlot(/* private fields */);Expand description
MemoryManagerSlot
A usable physical ic-stable-structures::MemoryManager allocation ID.
Construction and deserialization reject the unallocated-bucket sentinel (255), so reading the ID is infallible. A slot is an identity, not authority to open memory; that still requires committed allocation validation.
The private serde representation describes the current durable slot encoding. It preserves that encoding independently of this checked in-memory type.
Implementations§
Trait Implementations§
Source§impl Clone for MemoryManagerSlot
impl Clone for MemoryManagerSlot
Source§impl Debug for MemoryManagerSlot
impl Debug for MemoryManagerSlot
Source§impl<'de> Deserialize<'de> for MemoryManagerSlot
impl<'de> Deserialize<'de> for MemoryManagerSlot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MemoryManagerSlot
Source§impl Hash for MemoryManagerSlot
impl Hash for MemoryManagerSlot
Source§impl Ord for MemoryManagerSlot
impl Ord for MemoryManagerSlot
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MemoryManagerSlot
impl PartialEq for MemoryManagerSlot
Source§impl PartialOrd for MemoryManagerSlot
impl PartialOrd for MemoryManagerSlot
Source§impl Serialize for MemoryManagerSlot
impl Serialize for MemoryManagerSlot
impl StructuralPartialEq for MemoryManagerSlot
Auto Trait Implementations§
impl Freeze for MemoryManagerSlot
impl RefUnwindSafe for MemoryManagerSlot
impl Send for MemoryManagerSlot
impl Sync for MemoryManagerSlot
impl Unpin for MemoryManagerSlot
impl UnsafeUnpin for MemoryManagerSlot
impl UnwindSafe for MemoryManagerSlot
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