pub enum Opcode {
Show 44 variants
Op0,
Op1Negate,
Op1,
Op2,
Op3,
Op4,
Op5,
Op6,
Op7,
Op8,
Op9,
Op10,
Op11,
Op12,
Op13,
Op14,
Op15,
Op16,
OpNop,
OpIf,
OpNotIf,
OpElse,
OpEndIf,
OpVerify,
OpReturn,
Op2Drop,
Op2Dup,
OpDepth,
OpDrop,
OpDup,
OpNip,
OpOver,
OpSwap,
OpTuck,
OpSize,
OpEqual,
OpEqualVerify,
OpNot,
OpRipemd160,
OpSha256,
OpHash160,
OpHash256,
OpCheckSig,
OpCheckSigVerify,
}Expand description
A Bitcoin Script opcode supported by this engine.
This is a fieldless enum that maps 1:1 to protocol-defined byte values.
It derives Copy because it carries no heap data.
Variants§
Op0
Op1Negate
Op1
Op2
Op3
Op4
Op5
Op6
Op7
Op8
Op9
Op10
Op11
Op12
Op13
Op14
Op15
Op16
OpNop
OpIf
OpNotIf
OpElse
OpEndIf
OpVerify
OpReturn
Op2Drop
Op2Dup
OpDepth
OpDrop
OpDup
OpNip
OpOver
OpSwap
OpTuck
OpSize
OpEqual
OpEqualVerify
OpNot
OpRipemd160
OpSha256
OpHash160
OpHash256
OpCheckSig
OpCheckSigVerify
Implementations§
Trait Implementations§
impl Copy for Opcode
impl Eq for Opcode
impl StructuralPartialEq for Opcode
Auto Trait Implementations§
impl Freeze for Opcode
impl RefUnwindSafe for Opcode
impl Send for Opcode
impl Sync for Opcode
impl Unpin for Opcode
impl UnwindSafe for Opcode
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