Function voca_rs::count::count

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

Counts the characters in subject.

Arguments

  • subject - The string to count characters.

Example

use voca_rs::*;
count::count("rain");
// => 4
count::count("błąd");
// => 4
use voca_rs::Voca;
"rain"._count();
// => 4