Trait GuessSeparator
fritz_guess
pub trait GuessSeparator { fn guess<'a>( &self, separators: impl Iterator<Item = &'a char> + Clone ) -> Result<char, Error>; }
fn guess<'a>( &self, separators: impl Iterator<Item = &'a char> + Clone) -> Result<char, Error>
impl GuessSeparator for MostFrequentLineByLine
Check which of the provided separators occurs most often per line. That character which occurs most often 'wins' for a line. The character which wins most lines will be accepted as guess.