re_view 0.31.4

Types & utilities for defining view classes and communicating with the viewport.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use re_viewer_context::ViewState;

/// View state without any contents.
#[derive(Default)]
pub struct EmptyViewState;

impl ViewState for EmptyViewState {
    fn as_any(&self) -> &dyn std::any::Any {
        self
    }

    fn as_any_mut(&mut self) -> &mut dyn std::any::Any {
        self
    }
}