pub struct SessionContextSnapshot { /* private fields */ }Expand description
Session-owned context state and internal projections.
The fields are private so public callers can compile only snapshots created by the runtime session that owns context entries and crate-internal projections.
Treat this as an opaque view of session state. It is cloneable for deterministic compilation and tests, but external callers should not depend on its internal storage shape.
ⓘ
use merry_runtime::{ContextEntry, SessionContextSnapshot};
let entries: Vec<ContextEntry> = Vec::new();
let _ = SessionContextSnapshot { entries };Trait Implementations§
Source§impl Clone for SessionContextSnapshot
impl Clone for SessionContextSnapshot
Auto Trait Implementations§
impl Forget for SessionContextSnapshot
impl Freeze for SessionContextSnapshotwhere
*const u8 is !null: Freeze,
PhantomData<ContextEntry>: Freeze,
PhantomData<ActivatedMemory>: Freeze,
PhantomData<u8>: Freeze,
impl Move for SessionContextSnapshot
impl RefUnwindSafe for SessionContextSnapshot
impl Send for SessionContextSnapshotwhere
RawVecInner: Send,
impl Sync for SessionContextSnapshotwhere
RawVecInner: Sync,
impl Unpin for SessionContextSnapshot
impl UnsafeUnpin for SessionContextSnapshotwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<ContextEntry>: UnsafeUnpin,
PhantomData<ActivatedMemory>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for SessionContextSnapshotwhere
RawVecInner: UnwindSafe,
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