Struct fuel_etk_ops::london::Add

source ·
pub struct Add;
Expand description

Representation of the add instruction.

Trait Implementations§

source§

impl Clone for Add

source§

fn clone(&self) -> Add

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Add

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T> From<Add> for Op<T>where
    T: ?Sized + Immediates,

source§

fn from(op: Add) -> Self

Converts to this type from the input type.
source§

impl From<Add> for u8

source§

fn from(_: Add) -> Self

Converts to this type from the input type.
source§

impl Hash for Add

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where
    H: Hasher,
    Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Operation for Add

§

type Immediate = Void

The type of the immediate argument for this operation.
§

type ImmediateRef = Void

The return root type of Operation::immediate_mut and Operation::immediate.
§

type Code = Add

The return type of Operation::code.
source§

fn immediate(&self) -> Option<&Self::ImmediateRef>

Get a shared reference to the immediate argument of this operation, if one exists.
source§

fn immediate_mut(&mut self) -> Option<&mut Self::ImmediateRef>

Get a mutable reference to the immediate argument of this operation, if one exists.
source§

fn into_immediate(self) -> Option<Self::Immediate>

Consume this operation and return its immediate argument, if one exists.
source§

fn code(&self) -> Self::Code

The action (opcode) of this operation, without any immediates.
source§

fn extra_len(&self) -> usize

Length of immediate argument.
source§

fn mnemonic(&self) -> &str

Human-readable name for this operation.
source§

fn is_jump(&self) -> bool

Returns true if the current instruction changes the program counter (other than incrementing it.)
source§

fn is_jump_target(&self) -> bool

Returns true if the current instruction is a valid destination for jumps.
source§

fn is_exit(&self) -> bool

Returns true if the current instruction causes the EVM to stop executing the contract.
source§

fn pops(&self) -> usize

How many stack elements this instruction pops.
source§

fn pushes(&self) -> usize

How many stack elements this instruction pushes.
source§

fn code_byte(&self) -> u8

The byte (opcode) that indicates this operation.
source§

impl Ord for Add

source§

fn cmp(&self, other: &Add) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere
    Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere
    Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere
    Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<Add> for Add

source§

fn eq(&self, other: &Add) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<Add> for Add

source§

fn partial_cmp(&self, other: &Add) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Copy for Add

source§

impl Eq for Add

source§

impl StructuralEq for Add

source§

impl StructuralPartialEq for Add

Auto Trait Implementations§

§

impl RefUnwindSafe for Add

§

impl Send for Add

§

impl Sync for Add

§

impl Unpin for Add

§

impl UnwindSafe for Add

Blanket Implementations§

source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
    U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere
    T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.