Trait rerun::external::re_viewer_context::ViewStateExt

source ·
pub trait ViewStateExt: ViewState {
    // Provided methods
    fn downcast_ref<T>(&self) -> Result<&T, ViewSystemExecutionError>
       where T: ViewState { ... }
    fn downcast_mut<T>(&mut self) -> Result<&mut T, ViewSystemExecutionError>
       where T: ViewState { ... }
}

Provided Methods§

source

fn downcast_ref<T>(&self) -> Result<&T, ViewSystemExecutionError>
where T: ViewState,

Downcasts this state to a reference of a concrete type.

source

fn downcast_mut<T>(&mut self) -> Result<&mut T, ViewSystemExecutionError>
where T: ViewState,

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

Object Safety§

This trait is not object safe.

Implementors§