2019-05-10 16:59:12 +00:00
|
|
|
crate mod entries;
|
|
|
|
crate mod generic;
|
|
|
|
crate mod list;
|
|
|
|
crate mod table;
|
2019-06-21 04:20:06 +00:00
|
|
|
crate mod vtable;
|
2019-05-10 16:59:12 +00:00
|
|
|
|
2019-05-13 21:00:25 +00:00
|
|
|
use crate::prelude::*;
|
2019-05-10 16:59:12 +00:00
|
|
|
|
2019-06-07 22:35:07 +00:00
|
|
|
crate use entries::EntriesView;
|
2019-08-06 16:26:33 +00:00
|
|
|
#[allow(unused)]
|
2019-05-10 16:59:12 +00:00
|
|
|
crate use generic::GenericView;
|
|
|
|
crate use table::TableView;
|
2019-06-21 04:20:06 +00:00
|
|
|
crate use vtable::VTableView;
|
2019-05-10 16:59:12 +00:00
|
|
|
|
|
|
|
crate trait RenderView {
|
2019-05-24 18:48:33 +00:00
|
|
|
fn render_view(&self, host: &mut dyn Host) -> Result<(), ShellError>;
|
2019-05-10 16:59:12 +00:00
|
|
|
}
|
2019-05-13 21:00:25 +00:00
|
|
|
|
2019-05-24 18:48:33 +00:00
|
|
|
crate fn print_view(view: &impl RenderView, host: &mut dyn Host) -> Result<(), ShellError> {
|
|
|
|
view.render_view(host)
|
2019-05-15 22:58:44 +00:00
|
|
|
}
|