pub trait SingletonView<V> {
    // Required method
    fn find(siv: &mut Cursive) -> ViewRef<V>;
}
Expand description

Type-safe “singleton” view: a kind of view which is addressed by name, for which exactly one copy exists in the Cursive application.

Required Methods§

source

fn find(siv: &mut Cursive) -> ViewRef<V>

Look up the instance of the singleton view in the application. Panics if it hasn’t been added.

Implementors§