Trait SingletonView

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§