pub trait InstSet: FromStr + Displaywhere
<Self as FromStr>::Err: Display,{
// Required methods
fn as_func_ptr(&self) -> ExecFunc;
fn from_func_ptr(_: ExecFunc) -> Result<Self, <Self as FromStr>::Err>;
}
Expand description
Trait for instruction sets
Implement this for custom instruction sets. Manual implementation is tedious,
so use inst_set
or extend
macros if possible
The core instruction set
Basic instructions only
source§Available on crate feature extended
only.
The extended instruction set
Core
, plus debugging, raw input, function call and return, and no-op instructions