#[non_exhaustive]pub enum TimechainOp {
Fail,
}
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.
Fail
Trait Implementations§
Source§impl Bytecode for TimechainOp
impl Bytecode for TimechainOp
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<TimechainOp, CodeEofError>
fn decode<R>(_reader: &mut R) -> Result<TimechainOp, CodeEofError>
Reads the instruction from bytecode
Source§impl Clone for TimechainOp
impl Clone for TimechainOp
Source§fn clone(&self) -> TimechainOp
fn clone(&self) -> TimechainOp
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TimechainOp
impl Debug for TimechainOp
Source§impl Display for TimechainOp
impl Display for TimechainOp
Source§impl Hash for TimechainOp
impl Hash for TimechainOp
Source§impl InstructionSet for TimechainOp
impl InstructionSet for TimechainOp
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: &<TimechainOp as InstructionSet>::Context<'_>,
) -> ExecStep
fn exec( &self, _regs: &mut CoreRegs, _site: LibSite, _context: &<TimechainOp 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 TimechainOp
impl Ord for TimechainOp
Source§fn cmp(&self, other: &TimechainOp) -> Ordering
fn cmp(&self, other: &TimechainOp) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TimechainOp
impl PartialEq for TimechainOp
Source§impl PartialOrd for TimechainOp
impl PartialOrd for TimechainOp
impl Copy for TimechainOp
impl Eq for TimechainOp
impl StructuralPartialEq for TimechainOp
Auto Trait Implementations§
impl Freeze for TimechainOp
impl RefUnwindSafe for TimechainOp
impl Send for TimechainOp
impl Sync for TimechainOp
impl Unpin for TimechainOp
impl UnwindSafe for TimechainOp
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.