pub struct Opcode(pub u8);
Expand description
Opcode enum. One-to-one corresponding to an u8
value.
Tuple Fields§
§0: u8
Implementations§
§impl Opcode
impl Opcode
pub const SIGNEXTEND: Opcode = _
pub const SIGNEXTEND: Opcode = _
SIGNEXTEND
pub const CALLDATALOAD: Opcode = _
pub const CALLDATALOAD: Opcode = _
CALLDATALOAD
pub const CALLDATASIZE: Opcode = _
pub const CALLDATASIZE: Opcode = _
CALLDATASIZE
pub const CALLDATACOPY: Opcode = _
pub const CALLDATACOPY: Opcode = _
CALLDATACOPY
pub const PUSH1: Opcode = _
pub const PUSH2: Opcode = _
pub const PUSH3: Opcode = _
pub const PUSH4: Opcode = _
pub const PUSH5: Opcode = _
pub const PUSH6: Opcode = _
pub const PUSH7: Opcode = _
pub const PUSH8: Opcode = _
pub const PUSH9: Opcode = _
pub const PUSH10: Opcode = _
pub const PUSH11: Opcode = _
pub const PUSH12: Opcode = _
pub const PUSH13: Opcode = _
pub const PUSH14: Opcode = _
pub const PUSH15: Opcode = _
pub const PUSH16: Opcode = _
pub const PUSH17: Opcode = _
pub const PUSH18: Opcode = _
pub const PUSH19: Opcode = _
pub const PUSH20: Opcode = _
pub const PUSH21: Opcode = _
pub const PUSH22: Opcode = _
pub const PUSH23: Opcode = _
pub const PUSH24: Opcode = _
pub const PUSH25: Opcode = _
pub const PUSH26: Opcode = _
pub const PUSH27: Opcode = _
pub const PUSH28: Opcode = _
pub const PUSH29: Opcode = _
pub const PUSH30: Opcode = _
pub const PUSH31: Opcode = _
pub const PUSH32: Opcode = _
pub const DUP2: Opcode = _
pub const DUP3: Opcode = _
pub const DUP4: Opcode = _
pub const DUP5: Opcode = _
pub const DUP6: Opcode = _
pub const DUP7: Opcode = _
pub const DUP8: Opcode = _
pub const DUP9: Opcode = _
pub const DUP10: Opcode = _
pub const DUP11: Opcode = _
pub const DUP12: Opcode = _
pub const DUP13: Opcode = _
pub const DUP14: Opcode = _
pub const DUP15: Opcode = _
pub const DUP16: Opcode = _
pub const SWAP2: Opcode = _
pub const SWAP3: Opcode = _
pub const SWAP4: Opcode = _
pub const SWAP5: Opcode = _
pub const SWAP6: Opcode = _
pub const SWAP7: Opcode = _
pub const SWAP8: Opcode = _
pub const SWAP9: Opcode = _
pub const SWAP10: Opcode = _
pub const SWAP11: Opcode = _
pub const SWAP12: Opcode = _
pub const SWAP13: Opcode = _
pub const SWAP14: Opcode = _
pub const SWAP15: Opcode = _
pub const SWAP16: Opcode = _
§impl Opcode
impl Opcode
pub const SELFBALANCE: Opcode = _
pub const SELFBALANCE: Opcode = _
SELFBALANCE
pub const EXTCODESIZE: Opcode = _
pub const EXTCODESIZE: Opcode = _
EXTCODESIZE
pub const EXTCODECOPY: Opcode = _
pub const EXTCODECOPY: Opcode = _
EXTCODECOPY
pub const EXTCODEHASH: Opcode = _
pub const EXTCODEHASH: Opcode = _
EXTCODEHASH
pub const RETURNDATASIZE: Opcode = _
pub const RETURNDATASIZE: Opcode = _
RETURNDATASIZE
pub const RETURNDATACOPY: Opcode = _
pub const RETURNDATACOPY: Opcode = _
RETURNDATACOPY
pub const DIFFICULTY: Opcode = _
pub const DIFFICULTY: Opcode = _
DIFFICULTY
pub const LOG1: Opcode = _
pub const LOG2: Opcode = _
pub const LOG3: Opcode = _
pub const LOG4: Opcode = _
pub const DELEGATECALL: Opcode = _
pub const DELEGATECALL: Opcode = _
DELEGATECALL
pub const STATICCALL: Opcode = _
pub const STATICCALL: Opcode = _
STATICCALL
Trait Implementations§
§impl Decode for Opcode
impl Decode for Opcode
§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Opcode, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Opcode, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.
§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
Attempt to skip the encoded value from input. Read more
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
§impl<'de> Deserialize<'de> for Opcode
impl<'de> Deserialize<'de> for Opcode
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Opcode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Opcode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Encode for Opcode
impl Encode for Opcode
§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)where
__CodecOutputEdqy: Output + ?Sized,
fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.
§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
§impl Serialize for Opcode
impl Serialize for Opcode
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Opcode
impl EncodeLike for Opcode
impl Eq for Opcode
impl StructuralEq for Opcode
impl StructuralPartialEq for Opcode
Auto Trait Implementations§
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
§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
§fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
§impl<T> DecodeAll for Twhere
T: Decode,
impl<T> DecodeAll for Twhere
T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Decode
Self
and consume all of the given input data. Read more§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
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.§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
§impl<T> Hashable for Twhere
T: Codec,
impl<T> Hashable for Twhere
T: Codec,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IsType<T> for T
impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
§impl<T> KeyedVec for Twhere
T: Codec,
impl<T> KeyedVec for Twhere
T: Codec,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T
. Read more§impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
type Error = <U as TryFromKey<T>>::Error
fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>
§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.