pub struct Row { /* private fields */ }
Expand description
A row represents a single Map line from a CSV table
Implementations§
Source§impl Row
impl Row
Sourcepub fn into_map(self) -> Result<BTreeMap<String, String>, CSVError>
pub fn into_map(self) -> Result<BTreeMap<String, String>, CSVError>
Converts this row into a BTreeMap<String, String>.
This WILL return a Err
if there are duplicate keys
Sourcepub fn into_map_lossy(self) -> BTreeMap<String, String>
pub fn into_map_lossy(self) -> BTreeMap<String, String>
Convert into a BTreeMap<String, String>
.
Unlike Self::into_map
, this function will overwrite any previous keys with those found later in
the row.
Sourcepub fn into_items(self) -> Vec<(String, String)>
pub fn into_items(self) -> Vec<(String, String)>
Converts into a [std::vec::Vec<(String, String)>
], pairing each key with it’s associated value
Trait Implementations§
impl StructuralPartialEq for Row
Auto Trait Implementations§
impl Freeze for Row
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnwindSafe for Row
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