Struct cambridge_asm::exec::Executor
source · pub struct Executor {
pub debug_info: DebugInfo,
pub source: Source,
pub prog: ExTree,
pub ctx: Context,
/* private fields */
}
Expand description
Executes a program
Fields§
§debug_info: DebugInfo
§source: Source
§prog: ExTree
§ctx: Context
Implementations§
source§impl Executor
impl Executor
pub fn new( source: impl Into<Source>, prog: ExTree, ctx: Context, debug_info: DebugInfo ) -> Self
sourcepub fn step<T>(&mut self) -> Statuswhere
T: InstSet,
<T as FromStr>::Err: Display,
pub fn step<T>(&mut self) -> Statuswhere 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§
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