Struct evm::Memory [−][src]
pub struct Memory { /* fields omitted */ }Expand description
A sequencial memory. It uses Rust’s Vec for internal
representation.
Implementations
Get the effective length.
Resize the memory, making it cover the memory region of offset..(offset + len), with 32 bytes as the step. If the length is zero, this function
does nothing.
Resize the memory, making it cover to end, with 32 bytes as the step.
Get memory region at given offset.
Panics
Value of size is considered trusted. If they’re too large,
the program can run out of memory, or it can overflow.
Set memory region at given offset. The offset and value is considered untrusted.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Memoryimpl UnwindSafe for MemoryBlanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self
impl<T> MaybeDebug for T where
T: Debug,