pub struct ControlData {
pub nargs: Option<u16>,
pub stack: Option<SafeRc<Stack>>,
pub save: ControlRegs,
pub cp: Option<u16>,
}
Expand description
Total state of VM.
Fields§
§nargs: Option<u16>
§stack: Option<SafeRc<Stack>>
§save: ControlRegs
§cp: Option<u16>
Implementations§
Source§impl ControlData
impl ControlData
pub fn require_nargs(&self, copy: usize) -> VmResult<()>
Trait Implementations§
Source§impl Clone for ControlData
impl Clone for ControlData
Source§fn clone(&self) -> ControlData
fn clone(&self) -> ControlData
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 moreSource§impl Debug for ControlData
impl Debug for ControlData
Source§impl Default for ControlData
impl Default for ControlData
Source§fn default() -> ControlData
fn default() -> ControlData
Returns the “default value” for a type. Read more
Source§impl Load<'_> for ControlData
impl Load<'_> for ControlData
Source§impl Store for ControlData
impl Store for ControlData
Source§fn store_into(
&self,
builder: &mut CellBuilder,
context: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, context: &dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
Auto Trait Implementations§
impl Freeze for ControlData
impl !RefUnwindSafe for ControlData
impl !Send for ControlData
impl !Sync for ControlData
impl Unpin for ControlData
impl !UnwindSafe for ControlData
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