Docs.rs
str_indices-0.4.3
str_indices 0.4.3
Permalink
Docs.rs crate page
MIT OR Apache-2.0
Links
Documentation
Repository
crates.io
Source
Owners
cessen
archseer
josephg
Dependencies
criterion ^0.3
dev
proptest ^1.0
dev
Versions
100%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
☰
str_indices
0.4.3
In str_indices::chars
?
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.