mod private
{
use std::borrow::Cow;
use crate::*;
use print::
{
InputExtract,
Context,
};
use core::fmt;
pub trait TableOutputFormat
{
fn extract_write< 'buf, 'data >
(
&self,
x : &InputExtract< 'data >,
c : &mut Context< 'buf >,
) -> fmt::Result;
}
impl Default for &'static dyn TableOutputFormat
{
#[ inline( always ) ]
fn default() -> Self
{
super::table::Table::instance()
}
}
pub fn vector_table_write< 'data, 'context >
(
column_names : Vec< Cow< 'data, str > >,
has_header : bool,
rows : Vec< Vec< Cow< 'data, str > > >,
c : &mut Context< 'context >,
) -> fmt::Result
{
InputExtract::extract_from_raw_table
(
column_names,
has_header,
rows,
c.printer.filter_col,
c.printer.filter_row,
| x |
{
c.printer.output_format.extract_write( x, c )
}
)
}
}
mod table;
mod records;
mod keys;
#[ allow( unused_imports ) ]
pub use own::*;
#[ allow( unused_imports ) ]
pub mod own
{
use super::*;
#[ doc( inline ) ]
pub use orphan::*;
#[ doc( inline ) ]
pub use
{
table::Table,
records::Records,
keys::Keys,
};
#[ doc( inline ) ]
pub use private::vector_table_write;
}
#[ allow( unused_imports ) ]
pub mod orphan
{
use super::*;
#[ doc( inline ) ]
pub use exposed::*;
}
#[ allow( unused_imports ) ]
pub mod exposed
{
use super::*;
pub use super::super::output_format;
#[ doc( inline ) ]
pub use private::TableOutputFormat;
}
#[ allow( unused_imports ) ]
pub mod prelude
{
use super::*;
}