#[non_exhaustive]pub enum RgbIsa {
Contract(ContractOp),
Timechain(TimechainOp),
Fail(u8),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Contract(ContractOp)
Timechain(TimechainOp)
Fail(u8)
All other future unsupported operations, which must set st0
to
false
.
Trait Implementations§
Source§impl Bytecode for RgbIsa
impl Bytecode for RgbIsa
Source§fn byte_count(&self) -> u16
fn byte_count(&self) -> u16
Returns number of bytes which instruction and its argument occupies
Source§fn instr_range() -> RangeInclusive<u8>
fn instr_range() -> RangeInclusive<u8>
Returns range of instruction btecodes covered by a set of operations
Source§fn instr_byte(&self) -> u8
fn instr_byte(&self) -> u8
Returns byte representing instruction code (without its arguments)
Source§fn encode_args<W>(&self, writer: &mut W) -> Result<(), BytecodeError>where
W: Write,
fn encode_args<W>(&self, writer: &mut W) -> Result<(), BytecodeError>where
W: Write,
Writes instruction arguments as bytecode, omitting instruction code byte
Source§fn decode<R>(reader: &mut R) -> Result<RgbIsa, CodeEofError>
fn decode<R>(reader: &mut R) -> Result<RgbIsa, CodeEofError>
Reads the instruction from bytecode
Source§impl InstructionSet for RgbIsa
impl InstructionSet for RgbIsa
Source§fn isa_ids() -> BTreeSet<&'static str>
fn isa_ids() -> BTreeSet<&'static str>
ISA Extensions used by the provided instruction set. Read more
Source§fn exec(
&self,
regs: &mut CoreRegs,
site: LibSite,
context: &<RgbIsa as InstructionSet>::Context<'_>,
) -> ExecStep
fn exec( &self, regs: &mut CoreRegs, site: LibSite, context: &<RgbIsa as InstructionSet>::Context<'_>, ) -> ExecStep
Executes given instruction taking all registers as input and output. Read more
Source§fn isa_string() -> String
fn isa_string() -> String
ISA Extension IDs represented as a standard string (space-separated) Read more
Source§fn isa_id() -> Box<[u8]>
fn isa_id() -> Box<[u8]>
ISA Extension IDs encoded in a standard way (space-separated) Read more
Source§fn is_supported(id: &str) -> bool
fn is_supported(id: &str) -> bool
Checks whether provided ISA extension ID is supported by the current instruction set
Source§fn complexity(&self) -> u64
fn complexity(&self) -> u64
Returns computational complexity of the instruction
Source§impl Ord for RgbIsa
impl Ord for RgbIsa
Source§impl PartialOrd for RgbIsa
impl PartialOrd for RgbIsa
impl Copy for RgbIsa
impl Eq for RgbIsa
impl StructuralPartialEq for RgbIsa
Auto Trait Implementations§
impl Freeze for RgbIsa
impl RefUnwindSafe for RgbIsa
impl Send for RgbIsa
impl Sync for RgbIsa
impl Unpin for RgbIsa
impl UnwindSafe for RgbIsa
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.