[−][src]Struct formats::data_struct::Tabular
Fields
headers: Row
data: 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]
T: Iterator<Item = Row>,
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
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,