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>where
RgbIsa: Sized,
R: Read,
fn decode<R>(reader: &mut R) -> Result<RgbIsa, CodeEofError>where RgbIsa: Sized, R: Read,
Reads the instruction from bytecode
source§impl InstructionSet for RgbIsa
impl InstructionSet for RgbIsa
source§fn isa_ids() -> BTreeSet<&'static str, Global>
fn isa_ids() -> BTreeSet<&'static str, Global>
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
§fn isa_string() -> String
fn isa_string() -> String
ISA Extension IDs represented as a standard string (space-separated) Read more
§fn isa_id() -> Box<[u8], Global>
fn isa_id() -> Box<[u8], Global>
ISA Extension IDs encoded in a standard way (space-separated) Read more
§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
§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 PartialEq<RgbIsa> for RgbIsa
impl PartialEq<RgbIsa> for RgbIsa
source§impl PartialOrd<RgbIsa> for RgbIsa
impl PartialOrd<RgbIsa> for RgbIsa
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for RgbIsa
impl Eq for RgbIsa
impl StructuralEq for RgbIsa
impl StructuralPartialEq for RgbIsa
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.