pub struct Vm<Isa = Instr<LibId>>where
Isa: Instruction<LibId>,{
pub core: Core<LibId, <Isa as Instruction<LibId>>::Core>,
/* private fields */
}Expand description
Alu virtual machine providing single-core execution environment
Fields§
§core: Core<LibId, <Isa as Instruction<LibId>>::Core>A set of registers
Implementations§
Source§impl<Isa> Vm<Isa>where
Isa: Instruction<LibId>,
Runtime for program execution.
impl<Isa> Vm<Isa>where
Isa: Instruction<LibId>,
Runtime for program execution.
Sourcepub fn new() -> Vm<Isa>
pub fn new() -> Vm<Isa>
Constructs new virtual machine instance with default core configuration.
Sourcepub fn with(
config: CoreConfig,
cx_config: <<Isa as Instruction<LibId>>::Core as CoreExt>::Config,
) -> Vm<Isa>
pub fn with( config: CoreConfig, cx_config: <<Isa as Instruction<LibId>>::Core as CoreExt>::Config, ) -> Vm<Isa>
Constructs new virtual machine instance with default core configuration.
Sourcepub fn reset(&mut self)
pub fn reset(&mut self)
Resets all registers of the VM except those which were set up with the config object.
Trait Implementations§
Auto Trait Implementations§
impl<Isa> Freeze for Vm<Isa>
impl<Isa> RefUnwindSafe for Vm<Isa>
impl<Isa> Send for Vm<Isa>
impl<Isa> Sync for Vm<Isa>
impl<Isa> Unpin for Vm<Isa>
impl<Isa> UnwindSafe for Vm<Isa>
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