pub trait CheatcodesBackend<FEN: FoundryEvmNetwork> {
// Required methods
fn backend(&self) -> &Backend<FEN>;
fn backend_mut(&mut self) -> &mut Backend<FEN>;
}Expand description
Backend access of the cheatcode inspector while an execution runs.
Implemented for Backend and CowBackend, so fuzzed calls keep their lazy copy-on-write
clone: read-only cheatcodes never clone the backend.
Required Methods§
Sourcefn backend_mut(&mut self) -> &mut Backend<FEN>
fn backend_mut(&mut self) -> &mut Backend<FEN>
Returns the backend for modification.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".