pub struct SealedDeclarationSnapshot { /* private fields */ }Expand description
SealedDeclarationSnapshot
Immutable, canonical linked-program allocation requests supplied to each concrete crate::MemoryRuntime.
Sealing runs generated registration hooks and eager declaration hooks exactly once. Clones share the same immutable snapshot. This value contains declaration authority only; it contains no memory handles, recovery state, bootstrap lifecycle, or committed allocation capability.
Implementations§
Source§impl SealedDeclarationSnapshot
impl SealedDeclarationSnapshot
Sourcepub fn new(
requests: &[MemoryRequest],
) -> Result<Self, StaticMemoryDeclarationError>
pub fn new( requests: &[MemoryRequest], ) -> Result<Self, StaticMemoryDeclarationError>
Canonicalize explicit requests with the same rules as the linked registry.
Sourcepub fn requests(&self) -> &[MemoryRequest]
pub fn requests(&self) -> &[MemoryRequest]
Borrow canonical unresolved key-only requests.
Sourcepub fn fingerprint(&self) -> SealedDeclarationFingerprint
pub fn fingerprint(&self) -> SealedDeclarationFingerprint
Return the deterministic fingerprint of this sealed declaration meaning.
Trait Implementations§
Source§impl Clone for SealedDeclarationSnapshot
impl Clone for SealedDeclarationSnapshot
Source§impl Debug for SealedDeclarationSnapshot
impl Debug for SealedDeclarationSnapshot
impl Eq for SealedDeclarationSnapshot
impl StructuralPartialEq for SealedDeclarationSnapshot
Auto Trait Implementations§
impl Freeze for SealedDeclarationSnapshot
impl RefUnwindSafe for SealedDeclarationSnapshot
impl Send for SealedDeclarationSnapshot
impl Sync for SealedDeclarationSnapshot
impl Unpin for SealedDeclarationSnapshot
impl UnsafeUnpin for SealedDeclarationSnapshot
impl UnwindSafe for SealedDeclarationSnapshot
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