pub struct AllocationDeclaration { /* private fields */ }Expand description
AllocationDeclaration
Resolved key-to-slot binding borrowed from a committed runtime.
Production inputs are key-only crate::MemoryRequest values. The runtime
resolves slots, validates recovered ownership and persists its generation
before exposing these bindings. Numeric construction and decoding are
available only with test-support for explicit fixtures.
Implementations§
Source§impl AllocationDeclaration
impl AllocationDeclaration
Sourcepub const fn stable_key(&self) -> &StableKey
pub const fn stable_key(&self) -> &StableKey
Return the durable stable key claimed by this declaration.
Sourcepub const fn slot(&self) -> &MemoryManagerSlot
pub const fn slot(&self) -> &MemoryManagerSlot
Return the allocation slot claimed by this declaration.
Trait Implementations§
Source§impl Clone for AllocationDeclaration
impl Clone for AllocationDeclaration
Source§impl Debug for AllocationDeclaration
impl Debug for AllocationDeclaration
impl Eq for AllocationDeclaration
Source§impl PartialEq for AllocationDeclaration
impl PartialEq for AllocationDeclaration
Source§impl Serialize for AllocationDeclaration
impl Serialize for AllocationDeclaration
impl StructuralPartialEq for AllocationDeclaration
Auto Trait Implementations§
impl Freeze for AllocationDeclaration
impl RefUnwindSafe for AllocationDeclaration
impl Send for AllocationDeclaration
impl Sync for AllocationDeclaration
impl Unpin for AllocationDeclaration
impl UnsafeUnpin for AllocationDeclaration
impl UnwindSafe for AllocationDeclaration
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