mirror of
https://github.com/nushell/nushell
synced 2025-01-14 14:14:13 +00:00
21 lines
478 B
Rust
21 lines
478 B
Rust
crate mod entries;
|
|
crate mod generic;
|
|
crate mod list;
|
|
crate mod table;
|
|
crate mod vtable;
|
|
|
|
use crate::prelude::*;
|
|
|
|
crate use entries::EntriesView;
|
|
#[allow(unused)]
|
|
crate use generic::GenericView;
|
|
crate use table::TableView;
|
|
crate use vtable::VTableView;
|
|
|
|
crate trait RenderView {
|
|
fn render_view(&self, host: &mut dyn Host) -> Result<(), ShellError>;
|
|
}
|
|
|
|
crate fn print_view(view: &impl RenderView, host: &mut dyn Host) -> Result<(), ShellError> {
|
|
view.render_view(host)
|
|
}
|