Enum tetsy_vm::GasLeft[][src]

pub enum GasLeft {
    Known(U256),
    NeedsReturn {
        gas_left: U256,
        data: ReturnData,
        apply_state: bool,
    },
}

Gas Left: either it is a known value, or it needs to be computed by processing a return instruction.

Variants

Known(U256)

Known gas left

NeedsReturn

Return or Revert instruction must be processed.

Fields of NeedsReturn

gas_left: U256

Amount of gas left.

data: ReturnData

Return data buffer.

apply_state: bool

Apply or revert state changes on revert.

Trait Implementations

impl Debug for GasLeft[src]

Auto Trait Implementations

impl RefUnwindSafe for GasLeft

impl Send for GasLeft

impl Sync for GasLeft

impl Unpin for GasLeft

impl UnwindSafe for GasLeft

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,