Skip to main content

CheatcodeInspectorStrategyContext

Trait CheatcodeInspectorStrategyContext 

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

Required Methods§

Source

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

Clone the strategy context.

Source

fn as_any_ref(&self) -> &dyn Any

Alias as immutable reference of Any.

Source

fn as_any_mut(&mut self) -> &mut dyn Any

Alias as mutable reference of Any.

Trait Implementations§

Source§

impl Clone for Box<dyn CheatcodeInspectorStrategyContext>

Source§

fn clone(&self) -> Self

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§

Source§

impl CheatcodeInspectorStrategyContext for ()

Default strategy context object.

Source§

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

Source§

fn as_any_mut(&mut self) -> &mut dyn Any

Source§

fn as_any_ref(&self) -> &dyn Any

Implementors§