pub struct SourceRow { /* private fields */ }Implementations§
Source§impl SourceRow
impl SourceRow
pub fn new(headers: &[String], values: Vec<String>) -> Self
pub fn from_csv_line(line: &str) -> Self
pub fn from_pairs(pairs: Vec<(String, String)>) -> Self
pub fn get(&self, column: &str) -> Option<&str>
pub fn get_or(&self, column: &str, default: &str) -> String
pub fn columns(&self) -> &[String]
pub fn values(&self) -> &[String]
pub fn to_map(&self) -> HashMap<String, String>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SourceRow
impl RefUnwindSafe for SourceRow
impl Send for SourceRow
impl Sync for SourceRow
impl Unpin for SourceRow
impl UnsafeUnpin for SourceRow
impl UnwindSafe for SourceRow
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