ICxProgram

Trait ICxProgram 

Source
trait ICxProgram: Debug {
    // Required methods
    fn execute(&self, hash: u32) -> Result<u32>;
    fn clear(&mut self);
    fn emit_nop(&mut self, count: usize) -> bool;
    fn emit(&mut self, bytecode: CxByteCode, length: usize) -> bool;
    fn emit_u32(&mut self, x: u32) -> bool;
    fn get_random(&mut self) -> u32;

    // Provided method
    fn emit_random(&mut self) -> bool { ... }
}
Available on crate features kirikiri and kirikiri-arc only.

Required Methods§

Source

fn execute(&self, hash: u32) -> Result<u32>

Source

fn clear(&mut self)

Source

fn emit_nop(&mut self, count: usize) -> bool

Source

fn emit(&mut self, bytecode: CxByteCode, length: usize) -> bool

Source

fn emit_u32(&mut self, x: u32) -> bool

Source

fn get_random(&mut self) -> u32

Provided Methods§

Source

fn emit_random(&mut self) -> bool

Implementors§