Function bytecount::naive_count [−][src]
Expand description
Count occurrences of a byte in a slice of bytes, simple
Example
let s = b"This is yet another Text with spaces";
let number_of_spaces = bytecount::naive_count(s, b' ');
assert_eq!(number_of_spaces, 6);