Struct evmil::analysis::ConcreteState
source · pub struct ConcreteState<S, M, T>{ /* private fields */ }
Expand description
An EvmState
composed from three distinct (and potentially
abstract) components: stack, memory and storage.
Implementations§
Trait Implementations§
source§impl<S, M, T> Clone for ConcreteState<S, M, T>
impl<S, M, T> Clone for ConcreteState<S, M, T>
source§fn clone(&self) -> ConcreteState<S, M, T>
fn clone(&self) -> ConcreteState<S, M, T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<S, M, T> Debug for ConcreteState<S, M, T>
impl<S, M, T> Debug for ConcreteState<S, M, T>
source§impl<S, M, T> Display for ConcreteState<S, M, T>
impl<S, M, T> Display for ConcreteState<S, M, T>
source§impl<S, M, T> EvmState for ConcreteState<S, M, T>
impl<S, M, T> EvmState for ConcreteState<S, M, T>
source§fn goto(&mut self, pc: usize)
fn goto(&mut self, pc: usize)
Move program counter to a given (byte) offset within the code section.
§type Word = <S as EvmStack>::Word
type Word = <S as EvmStack>::Word
Defines what constitutes a word in this EVM. For example, a
concrete evm will use a
w256
here whilst an abstract evm
will use something that can, for example, describe unknown
values.source§fn stack(&self) -> &Self::Stack
fn stack(&self) -> &Self::Stack
Get read access to the operand stack contained within this
state.
source§fn memory(&self) -> &Self::Memory
fn memory(&self) -> &Self::Memory
Get read access to the scratch memory contained within this
state.
source§fn storage(&self) -> &Self::Storage
fn storage(&self) -> &Self::Storage
Get read access to the persistent storage contained within
this state.
source§fn stack_mut(&mut self) -> &mut Self::Stack
fn stack_mut(&mut self) -> &mut Self::Stack
Get write access to the operand stack contained within this
state.
source§fn memory_mut(&mut self) -> &mut Self::Memory
fn memory_mut(&mut self) -> &mut Self::Memory
Get write access to the scratch memory contained within this
state.
source§fn storage_mut(&mut self) -> &mut Self::Storage
fn storage_mut(&mut self) -> &mut Self::Storage
Get write access to the persistent storage contained within
this state.
source§impl<S, M, T> PartialEq for ConcreteState<S, M, T>
impl<S, M, T> PartialEq for ConcreteState<S, M, T>
source§fn eq(&self, other: &ConcreteState<S, M, T>) -> bool
fn eq(&self, other: &ConcreteState<S, M, T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<S, M, T> StructuralPartialEq for ConcreteState<S, M, T>
Auto Trait Implementations§
impl<S, M, T> Freeze for ConcreteState<S, M, T>
impl<S, M, T> RefUnwindSafe for ConcreteState<S, M, T>
impl<S, M, T> Send for ConcreteState<S, M, T>
impl<S, M, T> Sync for ConcreteState<S, M, T>
impl<S, M, T> Unpin for ConcreteState<S, M, T>
impl<S, M, T> UnwindSafe for ConcreteState<S, M, T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more