Enum evm_gasometer::GasCost [−][src]
pub enum GasCost {}Show variants
Zero, Base, VeryLow, Low, Invalid, ExtCodeSize, Balance, BlockHash, ExtCodeHash, Call { value: U256, gas: U256, target_exists: bool, }, CallCode { value: U256, gas: U256, target_exists: bool, }, DelegateCall { gas: U256, target_exists: bool, }, StaticCall { gas: U256, target_exists: bool, }, Suicide { value: U256, target_exists: bool, already_removed: bool, }, SStore { original: H256, current: H256, new: H256, }, Sha3 { len: U256, }, Log { n: u8, len: U256, }, ExtCodeCopy { len: U256, }, VeryLowCopy { len: U256, }, Exp { power: U256, }, Create, Create2 { len: U256, }, SLoad,
Expand description
Gas cost.
Variants
Zero gas cost.
Base gas cost.
Very low gas cost.
Low gas cost.
Fail the gasometer.
Gas cost for EXTCODESIZE
.
Gas cost for BALANCE
.
Gas cost for BLOCKHASH
.
Gas cost for EXTBLOCKHASH
.
Gas cost for CALL
.
Show fields
Gas cost for `CALLCODE.
Show fields
Gas cost for DELEGATECALL
.
Gas cost for STATICCALL
.
Gas cost for SUICIDE
.
Show fields
Gas cost for SSTORE
.
Show fields
Gas cost for SHA3
.
Show fields
Fields of Sha3
len: U256
Length of the data.
Gas cost for LOG
.
Gas cost for EXTCODECOPY
.
Show fields
Fields of ExtCodeCopy
len: U256
Length.
Gas cost for some copy opcodes that is documented as VERYLOW
.
Show fields
Fields of VeryLowCopy
len: U256
Length.
Gas cost for EXP
.
Show fields
Fields of Exp
power: U256
Power of EXP
.
Gas cost for CREATE
.
Gas cost for CREATE2
.
Show fields
Fields of Create2
len: U256
Length.
Gas cost for SLOAD
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GasCost
impl Send for GasCost
impl Sync for GasCost
impl Unpin for GasCost
impl UnwindSafe for GasCost
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more