pub struct CsvTokenizer { /* private fields */ }Implementations§
Source§impl CsvTokenizer
impl CsvTokenizer
pub fn new(path: &str) -> CsvTokenizer
pub fn trim_csv(input: &str, output: &str)
pub fn headers(&self) -> Result<Vec<String>, Box<dyn Error>>
pub fn records(&self) -> Result<Vec<Vec<String>>, Box<dyn Error>>
pub async fn process<F, T, U>( &mut self, callable: F, ) -> Result<Vec<U>, Box<dyn Error>>
pub async fn process2<'a, F, T, U>( &'a mut self, callable: F, ) -> Result<Vec<U>, Box<dyn Error>>
pub fn execute(&self, out_path: &str) -> Result<(), Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for CsvTokenizer
impl RefUnwindSafe for CsvTokenizer
impl Send for CsvTokenizer
impl Sync for CsvTokenizer
impl Unpin for CsvTokenizer
impl UnsafeUnpin for CsvTokenizer
impl UnwindSafe for CsvTokenizer
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more