Trait rerun::external::re_viewer_context::SpaceViewState

source ·
pub trait SpaceViewState: Any + Sync + Send {
    // Required methods
    fn as_any(&self) -> &(dyn Any + 'static);
    fn as_any_mut(&mut self) -> &mut (dyn Any + 'static);
}
Expand description

Unserialized frame to frame state of a space view.

For any state that should be persisted, use the Blueprint! This state is used for transient state, such as animation or uncommitted ui state like dragging a camera. (on mouse release, the camera would be committed to the blueprint).

Required Methods§

source

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

Converts itself to a reference of std::any::Any, which enables downcasting to concrete types.

source

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

Converts itself to a reference of std::any::Any, which enables downcasting to concrete types.

Trait Implementations§

source§

impl SpaceViewStateExt for dyn SpaceViewState

source§

fn downcast_ref<T>(&self) -> Result<&T, SpaceViewSystemExecutionError>
where T: SpaceViewState,

Downcasts this state to a reference of a concrete type.
source§

fn downcast_mut<T>(&mut self) -> Result<&mut T, SpaceViewSystemExecutionError>
where T: SpaceViewState,

Downcasts this state to a mutable reference of a concrete type.

Implementations on Foreign Types§

source§

impl SpaceViewState for ()

Implementation of an empty space view state.

source§

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

source§

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

Implementors§