[][src]Trait semeion::entity::state::State

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

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

pub fn as_any(&self) -> &dyn Any[src]

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

pub fn as_any_mut(&mut self) -> &mut dyn Any[src]

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

Loading content...

Implementors

Loading content...