pub struct StorySnapshot<R: StoryRng = FastRng> { /* private fields */ }Expand description
Owned story state that can be detached from a Program and reattached later.
Created by Story::into_snapshot, consumed by Story::from_snapshot.
This enables locale hot-swapping: detach state, mutate the program’s line
tables, then reattach.
Auto Trait Implementations§
impl<R> Freeze for StorySnapshot<R>
impl<R> RefUnwindSafe for StorySnapshot<R>where
R: RefUnwindSafe,
impl<R> Send for StorySnapshot<R>where
R: Send,
impl<R> Sync for StorySnapshot<R>where
R: Sync,
impl<R> Unpin for StorySnapshot<R>where
R: Unpin,
impl<R> UnsafeUnpin for StorySnapshot<R>
impl<R> UnwindSafe for StorySnapshot<R>where
R: 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