Skip to main content

load_opcode_by_code

Function load_opcode_by_code 

Source
pub fn load_opcode_by_code(code: u32) -> Result<WorkerOpcode, SpecError>
Expand description

Return the opcode with the given code.

§Errors

Returns an error if the spec fails to parse or code doesn’t match any authored opcode.