Skip to main content

DynCheatcode

Trait DynCheatcode 

pub trait DynCheatcode: 'static + Any {
    // 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<Vec<u8>, Error>;
    fn as_any(&self) -> &(dyn Any + '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<Vec<u8>, Error>

fn as_any(&self) -> &(dyn Any + 'static)

Implementors§

§

impl<T> DynCheatcode for T
where T: Cheatcode,