Enum Class
pub enum Class {
PushNum(i32),
PushBytes(u32),
ReturnOp,
SuccessOp,
IllegalOp,
NoOp,
Ordinary(Ordinary),
}
Expand description
Broad categories of opcodes with similar behavior.
Variants§
PushNum(i32)
Pushes the given number onto the stack.
PushBytes(u32)
Pushes the given number of bytes onto the stack.
ReturnOp
Fails the script if executed.
SuccessOp
Succeeds the script even if not executed.
IllegalOp
Fails the script even if not executed.
NoOp
Does nothing.
Ordinary(Ordinary)
Any opcode not covered above.
Trait Implementations§
impl Copy for Class
impl Eq for Class
impl StructuralPartialEq for Class
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnwindSafe for Class
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more