pub struct CSVLine { /* private fields */ }
Expand description
A parser for a single line of CSV data.
Implementations§
Source§impl CSVLine
impl CSVLine
Sourcepub fn with_separator(self, separator: char) -> Self
pub fn with_separator(self, separator: char) -> Self
Sets the separator character for the parser.
Sourcepub fn decode_str<T: DeserializeOwned>(&self, s: &str) -> Result<T, Error>
pub fn decode_str<T: DeserializeOwned>(&self, s: &str) -> Result<T, Error>
Deserializes a string into a custom type.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CSVLine
impl RefUnwindSafe for CSVLine
impl Send for CSVLine
impl Sync for CSVLine
impl Unpin for CSVLine
impl UnwindSafe for CSVLine
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