pub enum MemoryWriteError {
PastEnd {
offset: u64,
length: usize,
size: u64,
},
Shrank {
before: u64,
after: u64,
},
TooLarge(u64),
}Expand description
Why a memory write cannot be recorded.
Variants§
PastEnd
The written bytes end past the size the memory is said to have after the write.
Shrank
The memory is said to have shrunk, which EVM memory never does within a frame.
TooLarge(u64)
More memory than this platform can address.
Trait Implementations§
Source§impl Clone for MemoryWriteError
impl Clone for MemoryWriteError
Source§impl Debug for MemoryWriteError
impl Debug for MemoryWriteError
Source§impl Display for MemoryWriteError
impl Display for MemoryWriteError
impl Eq for MemoryWriteError
Source§impl Error for MemoryWriteError
impl Error for MemoryWriteError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for MemoryWriteError
impl PartialEq for MemoryWriteError
impl StructuralPartialEq for MemoryWriteError
Auto Trait Implementations§
impl Freeze for MemoryWriteError
impl RefUnwindSafe for MemoryWriteError
impl Send for MemoryWriteError
impl Sync for MemoryWriteError
impl Unpin for MemoryWriteError
impl UnsafeUnpin for MemoryWriteError
impl UnwindSafe for MemoryWriteError
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