Skip to main content

stats

Function stats 

Source
pub fn stats(text: &str) -> TextStats
Expand description

Compute the full TextStats bundle for text.

Empty input yields all-zero counts (and zero difficulty). The function is total: it never panics and allocates only for the temporary word list.