bytestr 0.3.1

A utility provides a cheaply cloneable and sliceable immutable string.
Documentation
1
2
3
4
5
6
fn main() {
    let s = "Hello, 世界!";
    println!("String: '{}'", s);
    println!("Byte length: {}", s.len());
    println!("Char count: {}", s.chars().count());
}