Struct formats::data_struct::Tabular
source · Fields
headers: Row
data: Vec<Row>
Implementations
sourceimpl Tabular
impl Tabular
pub fn new(headers: Row) -> Tabular
pub fn add_row(&mut self, row: Row)
pub fn add_data_from_iter<T>(&mut self, iter: T)where
T: Iterator<Item = Row>,
pub fn has_headers(&self) -> bool
pub fn has_data(&self) -> bool
pub fn write_csv(&self, path: &str) -> Result<(), Error>
pub fn get_output_headers_data(&self) -> Result<(&Row, &[Row]), Error>
pub fn write_json(&self, path: &str) -> Result<(), Error>
pub fn write_yaml(&self, path: &str) -> Result<(), Error>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Tabular
impl Send for Tabular
impl Sync for Tabular
impl Unpin for Tabular
impl UnwindSafe for Tabular
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more