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.