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

Required Methods§

source

fn as_func_ptr(&self) -> ExecFunc

source

fn from_func_ptr(_: ExecFunc) -> Result<Self, <Self as FromStr>::Err>

Implementors§

source§

impl InstSet for Core

The core instruction set

Basic instructions only

source§

impl InstSet for Extended

Available on crate feature extended only.

The extended instruction set

Core, plus debugging, raw input, function call and return, and no-op instructions