mirror of
https://github.com/nushell/nushell
synced 2025-01-24 02:45:31 +00:00
14 lines
342 B
Rust
14 lines
342 B
Rust
pub(crate) mod table;
|
|
|
|
use crate::prelude::*;
|
|
use nu_errors::ShellError;
|
|
|
|
pub(crate) use table::TableView;
|
|
|
|
pub(crate) trait RenderView {
|
|
fn render_view(&self, host: &mut dyn Host) -> Result<(), ShellError>;
|
|
}
|
|
|
|
pub(crate) fn print_view(view: &impl RenderView, host: &mut dyn Host) -> Result<(), ShellError> {
|
|
view.render_view(host)
|
|
}
|