pub struct SavedFrameState {
pub frame_data: Vec<u8>,
pub frame_count: usize,
}Expand description
Saved frame state for generators This stores the frames and values that need to be restored when resuming
Fields§
§frame_data: Vec<u8>Serialized frame data - stored as a clonable representation
frame_count: usizeNumber of frames
Trait Implementations§
Source§impl Clone for SavedFrameState
impl Clone for SavedFrameState
Source§fn clone(&self) -> SavedFrameState
fn clone(&self) -> SavedFrameState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SavedFrameState
impl RefUnwindSafe for SavedFrameState
impl Send for SavedFrameState
impl Sync for SavedFrameState
impl Unpin for SavedFrameState
impl UnwindSafe for SavedFrameState
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