Function profligate::auto::analysis::most_frequent_char[][src]

pub fn most_frequent_char(text: &str) -> u8

Returns the most frequently occurring character in the given string. Case-insensitive, returns a lowercase char; assumes the text is ASCII. Behaves in a deterministic way - should two or more Latin letters be equally frequent, the first one will be assumed.