Struct evmil::analysis::UnknownMemory
source · pub struct UnknownMemory<T: EvmWord + Top> { /* private fields */ }
Expand description
The simplest possible implementation of EvmMemory
which simply
returns “unknown” for every location. In other words, it doesn’t
actually analyse memory at all.
Implementations§
Trait Implementations§
source§impl<T: Clone + EvmWord + Top> Clone for UnknownMemory<T>
impl<T: Clone + EvmWord + Top> Clone for UnknownMemory<T>
source§fn clone(&self) -> UnknownMemory<T>
fn clone(&self) -> UnknownMemory<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<T: EvmWord + Top> EvmMemory for UnknownMemory<T>
impl<T: EvmWord + Top> EvmMemory for UnknownMemory<T>
§type Word = T
type Word = T
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 read(&mut self, _address: Self::Word) -> Self::Word
fn read(&mut self, _address: Self::Word) -> Self::Word
Read a word Get the word at a given location in storage.
source§impl<T: PartialEq + EvmWord + Top> PartialEq for UnknownMemory<T>
impl<T: PartialEq + EvmWord + Top> PartialEq for UnknownMemory<T>
source§fn eq(&self, other: &UnknownMemory<T>) -> bool
fn eq(&self, other: &UnknownMemory<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: EvmWord + Top> StructuralPartialEq for UnknownMemory<T>
Auto Trait Implementations§
impl<T> Freeze for UnknownMemory<T>
impl<T> RefUnwindSafe for UnknownMemory<T>where
T: RefUnwindSafe,
impl<T> Send for UnknownMemory<T>where
T: Send,
impl<T> Sync for UnknownMemory<T>where
T: Sync,
impl<T> Unpin for UnknownMemory<T>where
T: Unpin,
impl<T> UnwindSafe for UnknownMemory<T>where
T: UnwindSafe,
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