pub trait SpaceViewStateExt: SpaceViewState {
// Provided methods
fn downcast_ref<T: SpaceViewState>(
&self
) -> Result<&T, SpaceViewSystemExecutionError> { ... }
fn downcast_mut<T: SpaceViewState>(
&mut self
) -> Result<&mut T, SpaceViewSystemExecutionError> { ... }
}
Provided Methods§
sourcefn downcast_ref<T: SpaceViewState>(
&self
) -> Result<&T, SpaceViewSystemExecutionError>
fn downcast_ref<T: SpaceViewState>( &self ) -> Result<&T, SpaceViewSystemExecutionError>
Downcasts this state to a reference of a concrete type.
sourcefn downcast_mut<T: SpaceViewState>(
&mut self
) -> Result<&mut T, SpaceViewSystemExecutionError>
fn downcast_mut<T: SpaceViewState>( &mut self ) -> Result<&mut T, SpaceViewSystemExecutionError>
Downcasts this state to a mutable reference of a concrete type.
Object Safety§
This trait is not object safe.