2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-02-13 12:43:48 +00:00
nushell/src/format.rs

19 lines
422 B
Rust
Raw Normal View History

pub(crate) mod entries;
pub(crate) mod generic;
pub(crate) mod list;
pub(crate) mod table;
2019-05-10 09:59:12 -07:00
2019-05-13 17:00:25 -04:00
use crate::prelude::*;
2019-05-10 09:59:12 -07:00
pub(crate) use entries::EntriesView;
2019-09-01 23:11:05 -07:00
pub(crate) use table::TableView;
2019-05-10 09:59:12 -07:00
pub(crate) trait RenderView {
fn render_view(&self, host: &mut dyn Host) -> Result<(), ShellError>;
2019-05-10 09:59:12 -07:00
}
2019-05-13 17:00:25 -04:00
pub(crate) fn print_view(view: &impl RenderView, host: &mut dyn Host) -> Result<(), ShellError> {
view.render_view(host)
2019-05-15 15:58:44 -07:00
}