pub struct SaveLevel {
pub level: u16,
pub save_id: u32,
pub records: Vec<SaveRecord>,
pub valid: bool,
pub d_stack_depth: usize,
pub packing_mode: bool,
pub vm_alloc_mode: bool,
pub object_format: i32,
pub gstate: GraphicsState,
pub gstate_stack: Vec<GstateEntry>,
}Expand description
One save level’s state.
Fields§
§level: u16Numeric level (1-based, 0 = no save active).
save_id: u32Unique save id for invalidation tracking.
records: Vec<SaveRecord>COW records accumulated during this save level.
valid: boolWhether this save level is still valid (becomes false on restore).
d_stack_depth: usizeSnapshot of d_stack length at save time (for restore validation).
packing_mode: boolSaved packing mode (setpacking/currentpacking).
vm_alloc_mode: boolSaved VM allocation mode (setglobal/currentglobal).
object_format: i32Saved binary object format (setobjectformat/currentobjectformat).
gstate: GraphicsStateSaved graphics state and graphics state stack.
gstate_stack: Vec<GstateEntry>Auto Trait Implementations§
impl Freeze for SaveLevel
impl RefUnwindSafe for SaveLevel
impl Send for SaveLevel
impl Sync for SaveLevel
impl Unpin for SaveLevel
impl UnsafeUnpin for SaveLevel
impl UnwindSafe for SaveLevel
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