Struct revm::EVM[][src]

pub struct EVM<'a, DB: Database + WriteDatabase> {
    pub env: Env,
    pub inspector: Option<&'a mut dyn Inspector>,
    // some fields omitted
}
Expand description

Struct that takes Database and enabled transact to update state dirrectly to database. additionaly it allows user to set all environment parameters. Parameters that can be set are devided between Config, Block and Transaction(tx)

Fields

env: Envinspector: Option<&'a mut dyn Inspector>

Implementations

do dummy transaction and return change state. Does not touch the DB.

Do transaction and apply result to database

All functions inside this impl are various setters for evn. all setters are prefixed with cfg_, block_, tx_ for better readability.

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 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.