pub struct CsvTable {
pub header: Vec<String>,
pub rows: Vec<Vec<String>>,
/* private fields */
}
Fields§
§header: Vec<String>
§rows: Vec<Vec<String>>
Implementations§
Source§impl CsvTable
impl CsvTable
pub fn new(separator: char, text: &str) -> Self
pub fn parse_row(row: &str, separator: char) -> Vec<String>
pub fn push_rows(&mut self, rows: &str)
pub fn push_vecs(&mut self, vecs: Vec<Vec<String>>)
pub fn is_empty(&self) -> bool
pub fn rows_count(&self) -> usize
pub fn header(&self) -> Vec<&str>
pub fn header_mut(&mut self) -> Vec<&mut String>
pub fn separator(&self) -> char
pub fn rows(&self) -> Vec<Vec<&str>>
pub fn as_md(&self) -> String
pub fn range_as_md(&self, preview_range: RangeInclusive<usize>) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CsvTable
impl RefUnwindSafe for CsvTable
impl Send for CsvTable
impl Sync for CsvTable
impl Unpin for CsvTable
impl UnwindSafe for CsvTable
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