foundry_cheatcodes

Trait DynCheatcode

Source
pub(crate) trait DynCheatcode: 'static {
    // Required methods
    fn cheatcode(&self) -> &'static Cheatcode<'static>;
    fn as_debug(&self) -> &dyn Debug;
    fn dyn_apply(
        &self,
        ccx: &mut CheatsCtxt<'_, '_, '_, '_>,
        executor: &mut dyn CheatcodesExecutor,
    ) -> Result;
}

Required Methods§

Source

fn cheatcode(&self) -> &'static Cheatcode<'static>

Source

fn as_debug(&self) -> &dyn Debug

Source

fn dyn_apply( &self, ccx: &mut CheatsCtxt<'_, '_, '_, '_>, executor: &mut dyn CheatcodesExecutor, ) -> Result

Implementations§

Source§

impl dyn DynCheatcode

Source

pub(crate) fn name(&self) -> &'static str

Source

pub(crate) fn id(&self) -> &'static str

Source

pub(crate) fn signature(&self) -> &'static str

Source

pub(crate) fn status(&self) -> &Status<'static>

Implementors§