pub struct Dataset { /* private fields */ }Implementations§
Source§impl Dataset
impl Dataset
pub fn new(headers: Vec<String>, rows: Vec<Vec<String>>) -> Self
pub fn headers(&self) -> &[String]
pub fn row_count(&self) -> usize
pub fn column_count(&self) -> usize
pub fn get_row(&self, index: usize) -> Option<&[String]>
pub fn rows(&self) -> &[Vec<String>]
pub fn from_csv(content: &str) -> Result<Self, CsvError>
pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self, CsvError>
pub fn to_csv(&self) -> Result<String, CsvError>
pub fn apply_select(&self, select_expr: &str) -> Result<Self, CsvError>
pub fn apply_where(&self, where_expr: &str) -> Result<Self, CsvError>
pub fn apply_query( &self, select_expr: Option<&str>, where_expr: Option<&str>, ) -> Result<Self, CsvError>
pub fn canonicalize_pedigree_pt(&self) -> Self
pub fn canonicalize_pedigree_official(&self) -> Self
Trait Implementations§
impl Eq for Dataset
impl StructuralPartialEq for Dataset
Auto Trait Implementations§
impl Freeze for Dataset
impl RefUnwindSafe for Dataset
impl Send for Dataset
impl Sync for Dataset
impl Unpin for Dataset
impl UnsafeUnpin for Dataset
impl UnwindSafe for Dataset
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