pub struct VmInstance {
pub options: ProgramOptions,
pub mem_pool: Vec<u8>,
pub execution_index: usize,
pub extern_map: Box<dyn ExternMap>,
pub stack: Vec<StackElement>,
}
Fields§
§options: ProgramOptions
§mem_pool: Vec<u8>
§execution_index: usize
§extern_map: Box<dyn ExternMap>
§stack: Vec<StackElement>
Implementations§
Source§impl VmInstance
impl VmInstance
Sourcepub fn introduce<I>(&mut self, bytes: I)where
I: IntoIterator<Item = u8>,
pub fn introduce<I>(&mut self, bytes: I)where
I: IntoIterator<Item = u8>,
Introduce new bytes to the memory pool.
pub fn continue_execution(&mut self) -> Result<(), String>
pub fn from_raw( program_options: ProgramOptions, mem_pool: Vec<u8>, ptr_index: usize, extern_map: Box<dyn ExternMap>, ) -> Self
Sourcepub fn init(program_options: ProgramOptions) -> Self
pub fn init(program_options: ProgramOptions) -> Self
Uses the latest ivm_ext_x32 extern map.
See ivm_ext_x32, IvmX32ExternMap.
Auto Trait Implementations§
impl Freeze for VmInstance
impl !RefUnwindSafe for VmInstance
impl !Send for VmInstance
impl !Sync for VmInstance
impl Unpin for VmInstance
impl !UnwindSafe for VmInstance
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