[−][src]Enum script::Opcode
Script opcodes.
Variants
OP_0OP_PUSHBYTES_1OP_PUSHBYTES_2OP_PUSHBYTES_3OP_PUSHBYTES_4OP_PUSHBYTES_5OP_PUSHBYTES_6OP_PUSHBYTES_7OP_PUSHBYTES_8OP_PUSHBYTES_9OP_PUSHBYTES_10OP_PUSHBYTES_11OP_PUSHBYTES_12OP_PUSHBYTES_13OP_PUSHBYTES_14OP_PUSHBYTES_15OP_PUSHBYTES_16OP_PUSHBYTES_17OP_PUSHBYTES_18OP_PUSHBYTES_19OP_PUSHBYTES_20OP_PUSHBYTES_21OP_PUSHBYTES_22OP_PUSHBYTES_23OP_PUSHBYTES_24OP_PUSHBYTES_25OP_PUSHBYTES_26OP_PUSHBYTES_27OP_PUSHBYTES_28OP_PUSHBYTES_29OP_PUSHBYTES_30OP_PUSHBYTES_31OP_PUSHBYTES_32OP_PUSHBYTES_33OP_PUSHBYTES_34OP_PUSHBYTES_35OP_PUSHBYTES_36OP_PUSHBYTES_37OP_PUSHBYTES_38OP_PUSHBYTES_39OP_PUSHBYTES_40OP_PUSHBYTES_41OP_PUSHBYTES_42OP_PUSHBYTES_43OP_PUSHBYTES_44OP_PUSHBYTES_45OP_PUSHBYTES_46OP_PUSHBYTES_47OP_PUSHBYTES_48OP_PUSHBYTES_49OP_PUSHBYTES_50OP_PUSHBYTES_51OP_PUSHBYTES_52OP_PUSHBYTES_53OP_PUSHBYTES_54OP_PUSHBYTES_55OP_PUSHBYTES_56OP_PUSHBYTES_57OP_PUSHBYTES_58OP_PUSHBYTES_59OP_PUSHBYTES_60OP_PUSHBYTES_61OP_PUSHBYTES_62OP_PUSHBYTES_63OP_PUSHBYTES_64OP_PUSHBYTES_65OP_PUSHBYTES_66OP_PUSHBYTES_67OP_PUSHBYTES_68OP_PUSHBYTES_69OP_PUSHBYTES_70OP_PUSHBYTES_71OP_PUSHBYTES_72OP_PUSHBYTES_73OP_PUSHBYTES_74OP_PUSHBYTES_75OP_PUSHDATA1OP_PUSHDATA2OP_PUSHDATA4OP_1NEGATEOP_RESERVEDOP_1OP_2OP_3OP_4OP_5OP_6OP_7OP_8OP_9OP_10OP_11OP_12OP_13OP_14OP_15OP_16OP_NOPOP_VEROP_IFOP_NOTIFOP_VERIFOP_VERNOTIFOP_ELSEOP_ENDIFOP_VERIFYOP_RETURNOP_TOALTSTACKOP_FROMALTSTACKOP_2DROPOP_2DUPOP_3DUPOP_2OVEROP_2ROTOP_2SWAPOP_IFDUPOP_DEPTHOP_DROPOP_DUPOP_NIPOP_OVEROP_PICKOP_ROLLOP_ROTOP_SWAPOP_TUCKOP_CATOP_SUBSTROP_LEFTOP_RIGHTOP_SIZEOP_INVERTOP_ANDOP_OROP_XOROP_EQUALOP_EQUALVERIFYOP_RESERVED1OP_RESERVED2OP_1ADDOP_1SUBOP_2MULOP_2DIVOP_NEGATEOP_ABSOP_NOTOP_0NOTEQUALOP_ADDOP_SUBOP_MULOP_DIVOP_MODOP_LSHIFTOP_RSHIFTOP_BOOLANDOP_BOOLOROP_NUMEQUALOP_NUMEQUALVERIFYOP_NUMNOTEQUALOP_LESSTHANOP_GREATERTHANOP_LESSTHANOREQUALOP_GREATERTHANOREQUALOP_MINOP_MAXOP_WITHINOP_RIPEMD160OP_SHA1OP_SHA256OP_HASH160OP_HASH256OP_CODESEPARATOROP_CHECKSIGOP_CHECKSIGVERIFYOP_CHECKMULTISIGOP_CHECKMULTISIGVERIFYOP_NOP1OP_CHECKLOCKTIMEVERIFYOP_CHECKSEQUENCEVERIFYOP_NOP4OP_NOP5OP_NOP6OP_NOP7OP_NOP8OP_NOP9OP_NOP10OP_CHECKDATASIGOP_CHECKDATASIGVERIFYMethods
impl Opcode[src]
impl Opcodepub fn from_u8(u: u8) -> Option<Self>[src]
pub fn from_u8(u: u8) -> Option<Self>pub fn is_disabled(&self, flags: &VerificationFlags) -> bool[src]
pub fn is_disabled(&self, flags: &VerificationFlags) -> boolpub fn is_countable(&self) -> bool[src]
pub fn is_countable(&self) -> boolReturns true if opcode is countable
pub fn is_simple_push(&self) -> bool[src]
pub fn is_simple_push(&self) -> boolpub fn is_push_value(&self) -> bool[src]
pub fn is_push_value(&self) -> boolpub fn is_within_op_n(&self) -> bool[src]
pub fn is_within_op_n(&self) -> boolpub fn decode_op_n(&self) -> u8[src]
pub fn decode_op_n(&self) -> u8Trait Implementations
impl Debug for Opcode[src]
impl Debug for Opcodefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Opcode[src]
impl PartialEq for Opcodefn eq(&self, other: &Opcode) -> bool[src]
fn eq(&self, other: &Opcode) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for Opcode[src]
impl Eq for Opcodeimpl Clone for Opcode[src]
impl Clone for Opcodefn clone(&self) -> Opcode[src]
fn clone(&self) -> OpcodeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for Opcode[src]
impl Copy for Opcodeimpl PartialOrd for Opcode[src]
impl PartialOrd for Opcodefn partial_cmp(&self, other: &Opcode) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Opcode) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for Opcode[src]
impl Ord for Opcodefn cmp(&self, other: &Opcode) -> Ordering[src]
fn cmp(&self, other: &Opcode) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Display for Opcode[src]
impl Display for OpcodeAuto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, type Owned = T
fn to_owned(&self) -> T[src]
fn to_owned(&self) -> TCreates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)[src]
fn clone_into(&self, target: &mut T)🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> From for T[src]
impl<T> From for Timpl<T> ToString for T where
T: Display + ?Sized, [src]
impl<T> ToString for T where
T: Display + ?Sized, impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, ⓘImportant traits for &'a mut Rfn borrow(&self) -> &T[src]
fn borrow(&self) -> &TImmutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, ⓘImportant traits for &'a mut Rfn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more