Skip to main content

ViewState

Trait ViewState 

pub trait ViewState: Widget {
    // Provided methods
    fn view_state(&self) -> Option<ViewContribution> { ... }
    fn restore_view_state(&mut self, _view: &ViewContribution) { ... }
}
Expand description

A root with restorable presentation state.

Provided Methods§

fn view_state(&self) -> Option<ViewContribution>

This root’s contribution, restored through Self::restore_view_state.

fn restore_view_state(&mut self, _view: &ViewContribution)

Implementors§

§

impl ViewState for TileHost

§

impl<K> ViewState for ModelView<K>
where K: PartialEq + 'static,