pub trait State {
    fn as_any(&self) -> &dyn Any;
fn as_any_mut(&mut self) -> &mut dyn Any; }
Expand description

The trait that is implemented by the object that represents the State of an Entity. It exposes methods that enable dynamic typing of any 'static type through runtime reflection via the Any trait, so that you can downcast this trait to its original concrete type. For more information about type downcasting and dynamic typing please refer to the std documentation.

Required methods

Gets a reference to self via the Any trait, used to emulate dynamic typing and downcast this trait to its concrete type.

Gets a mutable reference to self via the Any trait, used to emulate dynamic typing and downcast this trait to its concrete type.

Implementors