Skip to main content

CheatcodeInspectorStrategyContext

Trait CheatcodeInspectorStrategyContext 

pub trait CheatcodeInspectorStrategyContext:
    Debug
    + Send
    + Sync
    + Any {
    // Required methods
    fn new_cloned(&self) -> Box<dyn CheatcodeInspectorStrategyContext>;
    fn as_any_ref(&self) -> &(dyn Any + 'static);
    fn as_any_mut(&mut self) -> &mut (dyn Any + 'static);
}
Expand description

Required Methods§

fn new_cloned(&self) -> Box<dyn CheatcodeInspectorStrategyContext>

Clone the strategy context.

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

Alias as immutable reference of Any.

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

Alias as mutable reference of Any.

Trait Implementations§

§

impl Clone for Box<dyn CheatcodeInspectorStrategyContext>

§

fn clone(&self) -> Box<dyn CheatcodeInspectorStrategyContext>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementations on Foreign Types§

§

impl CheatcodeInspectorStrategyContext for ()

Default strategy context object.

§

fn new_cloned(&self) -> Box<dyn CheatcodeInspectorStrategyContext>

§

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

§

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

Implementors§