[][src]Struct formats::data_struct::Tabular

pub struct Tabular {
    pub headers: Row,
    pub data: Vec<Row>,
}

Fields

headers: Rowdata: Vec<Row>

Methods

impl Tabular[src]

pub fn new(headers: Row) -> Tabular[src]

pub fn add_row(&mut self, row: Row)[src]

pub fn add_data_from_iter<T>(&mut self, iter: T) where
    T: Iterator<Item = Row>, 
[src]

pub fn has_headers(&self) -> bool[src]

pub fn has_data(&self) -> bool[src]

pub fn write_csv(&self, path: &str) -> Result<(), Error>[src]

pub fn get_output_headers_data(&self) -> Result<(&Row, &[Row]), Error>[src]

pub fn write_json(&self, path: &str) -> Result<(), Error>[src]

pub fn write_yaml(&self, path: &str) -> Result<(), Error>[src]

Trait Implementations

impl Debug for Tabular[src]

Auto Trait Implementations

impl Send for Tabular

impl Sync for Tabular

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]