pub struct ControlRegs {
pub c: [Option<RcCont>; 4],
pub d: [Option<Cell>; 2],
pub c7: Option<SafeRc<Tuple>>,
}
Expand description
Control registers page.
Fields§
§c: [Option<RcCont>; 4]
§d: [Option<Cell>; 2]
§c7: Option<SafeRc<Tuple>>
Implementations§
Source§impl ControlRegs
impl ControlRegs
pub fn is_valid_idx(i: usize) -> bool
pub fn merge(&mut self, other: &ControlRegs)
pub fn preclear(&mut self, other: &ControlRegs)
pub fn set(&mut self, i: usize, value: RcStackValue) -> VmResult<()>
pub fn set_c(&mut self, i: usize, cont: RcCont) -> bool
pub fn set_d(&mut self, i: usize, cell: Cell) -> bool
pub fn get_d(&self, i: usize) -> Option<Cell>
pub fn set_c7(&mut self, tuple: SafeRc<Tuple>)
pub fn get_as_stack_value(&self, i: usize) -> Option<RcStackValue>
pub fn define_c0(&mut self, cont: &Option<RcCont>)
pub fn define_c1(&mut self, cont: &Option<RcCont>)
pub fn define_c2(&mut self, cont: &Option<RcCont>)
pub fn define(&mut self, i: usize, value: RcStackValue) -> VmResult<()>
pub fn get_c7_params(&self) -> VmResult<&[RcStackValue]>
Trait Implementations§
Source§impl Clone for ControlRegs
impl Clone for ControlRegs
Source§fn clone(&self) -> ControlRegs
fn clone(&self) -> ControlRegs
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 ControlRegs
impl Debug for ControlRegs
Source§impl Default for ControlRegs
impl Default for ControlRegs
Source§fn default() -> ControlRegs
fn default() -> ControlRegs
Returns the “default value” for a type. Read more
Source§impl Load<'_> for ControlRegs
impl Load<'_> for ControlRegs
Source§impl Store for ControlRegs
impl Store for ControlRegs
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 ControlRegs
impl !RefUnwindSafe for ControlRegs
impl !Send for ControlRegs
impl !Sync for ControlRegs
impl Unpin for ControlRegs
impl !UnwindSafe for ControlRegs
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