[][src]Struct fritz_guess::MostFrequentLineByLine

pub struct MostFrequentLineByLine { /* fields omitted */ }

Decent effort guesser which implements guessing using a line-by-line winner takes all strategy. For a line, the winner is the separator which occurs most frequent. The overall winner is the separator which takes most wins.

Methods

impl MostFrequentLineByLine[src]

Trait Implementations

impl GuessSeparator for MostFrequentLineByLine[src]

fn guess<'a>(
    &self,
    separators: impl Iterator<Item = &'a char> + Clone
) -> Result<char, Error>
[src]

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.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.