pub trait App:
Send
+ Sync
+ 'static {
// Required methods
fn name(&self) -> &str;
fn tables(&self) -> Vec<&dyn Table>;
// Provided methods
fn subtitle(&self) -> Option<&str> { ... }
fn views(&self) -> Vec<&dyn View> { ... }
fn front(&self) -> Front { ... }
fn table(&self, route: &str) -> Option<&dyn Table> { ... }
fn view(&self, route: &str) -> Option<&dyn View> { ... }
}Expand description
One repository’s editor: a name for the shell, the tables it serves, and the views it computes.
Required Methods§
Provided Methods§
fn subtitle(&self) -> Option<&str>
Sourcefn views(&self) -> Vec<&dyn View>
fn views(&self) -> Vec<&dyn View>
The views in the order the shell lists them, before the tables. An app of tables alone leaves this alone and serves none.
fn table(&self, route: &str) -> Option<&dyn Table>
fn view(&self, route: &str) -> Option<&dyn View>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".