pub struct Tabular {
pub headers: Row,
pub data: Vec<Row>,
}Fields§
§headers: Row§data: Vec<Row>Implementations§
Source§impl 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)
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 Freeze for Tabular
impl RefUnwindSafe for Tabular
impl Send for Tabular
impl Sync for Tabular
impl Unpin for Tabular
impl UnwindSafe for Tabular
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more