pub struct mockFunctionReturn {}
Expand description
Whenever a call is made to callee
with calldata data
, this cheatcode instead calls
target
with the same calldata. This functionality is similar to a delegate call made to
target
contract from callee
.
Can be used to substitute a call to a function with another implementation that captures
the primary logic of the original function but is easier to reason about.
If calldata is not a strict match then partial match by selector is attempted.
Container type for the return parameters of the mockFunction(address,address,bytes)
function.
Trait Implementations§
Source§impl Clone for mockFunctionReturn
impl Clone for mockFunctionReturn
Source§fn clone(&self) -> mockFunctionReturn
fn clone(&self) -> mockFunctionReturn
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for mockFunctionReturn
impl RefUnwindSafe for mockFunctionReturn
impl Send for mockFunctionReturn
impl Sync for mockFunctionReturn
impl Unpin for mockFunctionReturn
impl UnwindSafe for mockFunctionReturn
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes