Function str_indices::chars::count

source ·
pub fn count(text: &str) -> usize
Expand description

Counts the chars in a string slice.

Runs in O(N) time.