Trait TokenReader

Source
pub trait TokenReader {
    // Required method
    fn next_tokens(&mut self) -> Result<Option<Vec<Token>>, CSVError>;
}
Expand description

A Token Reader reads tokens from input stream

Required Methods§

Source

fn next_tokens(&mut self) -> Result<Option<Vec<Token>>, CSVError>

Attempts to scan the line and return the immediate next set of Tokens it finds. Call this function repeatedly until it returns Ok(None) or errors.

Implementors§