Struct evm::backend::MemoryVicinity[][src]

pub struct MemoryVicinity {
    pub gas_price: U256,
    pub origin: H160,
    pub chain_id: U256,
    pub block_hashes: Vec<H256>,
    pub block_number: U256,
    pub block_coinbase: H160,
    pub block_timestamp: U256,
    pub block_difficulty: U256,
    pub block_gas_limit: U256,
    pub block_base_fee_per_gas: U256,
}
Expand description

Vivinity value of a memory backend.

Fields

gas_price: U256

Gas price.

origin: H160

Origin.

chain_id: U256

Chain ID.

block_hashes: Vec<H256>

Environmental block hashes.

block_number: U256

Environmental block number.

block_coinbase: H160

Environmental coinbase.

block_timestamp: U256

Environmental block timestamp.

block_difficulty: U256

Environmental block difficulty.

block_gas_limit: U256

Environmental block gas limit.

block_base_fee_per_gas: U256

Environmental base fee per gas.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.