Struct alure::Runtime [−][src]
pub struct Runtime<E = NOp> where
E: InstructionSet, { /* fields omitted */ }
Expand description
AluVM runtime execution environment
Implementations
impl<E> Runtime<E> where
E: InstructionSet,
[src]
impl<E> Runtime<E> where
E: InstructionSet,
[src]pub fn libs_ref(&self) -> &BTreeMap<LibHash, Lib<E>>
[src]
pub fn libs_ref(&self) -> &BTreeMap<LibHash, Lib<E>>
[src]Method borrowing Runtime::libs
field.
Libraries known to the runtime, identified by their hashes
pub fn entrypoint_ref(&self) -> &LibSite
[src]
pub fn entrypoint_ref(&self) -> &LibSite
[src]Method borrowing Runtime::entrypoint
field.
Entrypoint for the main function
pub fn registers_ref(&self) -> &Registers
[src]
pub fn registers_ref(&self) -> &Registers
[src]Method borrowing Runtime::registers
field.
A set of registers
impl<E> Runtime<E> where
E: InstructionSet,
[src]
impl<E> Runtime<E> where
E: InstructionSet,
[src]pub fn new() -> Runtime<E>
[src]
pub fn with(lib: Lib<E>) -> Runtime<E>
[src]
pub fn add_lib(&mut self, lib: Lib<E>) -> bool
[src]
pub fn add_lib(&mut self, lib: Lib<E>) -> bool
[src]Adds Alu bytecode library to the runtime environment. Returns if the library was already known.
pub fn set_entrypoint(&mut self, entrypoint: LibSite)
[src]
pub fn main(&mut self) -> Result<bool, NoLibraryError>
[src]
pub fn call(&mut self, method: LibSite) -> Result<bool, NoLibraryError>
[src]
Trait Implementations
impl<E: Debug> Debug for Runtime<E> where
E: InstructionSet,
[src]
impl<E: Debug> Debug for Runtime<E> where
E: InstructionSet,
[src]Auto Trait Implementations
impl<E> RefUnwindSafe for Runtime<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for Runtime<E> where
E: Send,
E: Send,
impl<E> Sync for Runtime<E> where
E: Sync,
E: Sync,
impl<E> Unpin for Runtime<E>
impl<E> UnwindSafe for Runtime<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,