Struct cambridge_asm::exec::Executor
source · [−]pub struct Executor {
pub source: Source,
pub prog: ExTree,
pub ctx: Context,
/* private fields */
}
Expand description
Executes a program
Fields
source: Source
prog: ExTree
ctx: Context
Implementations
sourceimpl Executor
impl Executor
pub fn new(source: impl Into<Source>, prog: ExTree, ctx: Context) -> Self
sourcepub fn step<T>(&mut self) -> Status where
T: InstSet,
<T as FromStr>::Err: Display,
pub fn step<T>(&mut self) -> Status where
T: InstSet,
<T as FromStr>::Err: Display,
Advances execution by one instruction
pub fn exec<T>(&mut self) where
T: InstSet,
<T as FromStr>::Err: Display,
pub fn display<T>(&self) -> Result<String, <T as FromStr>::Err> where
T: InstSet,
<T as FromStr>::Err: Display,
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Executor
impl !Send for Executor
impl !Sync for Executor
impl Unpin for Executor
impl !UnwindSafe for Executor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more