Crate bytes_text[][src]

Expand description

Text is to Bytes what String is to Vec<u8>

Example

use bytes_text::Text;

let text = Text::from("Hello, world!");
println!("{}", text);

let hello = text.get(..5).unwrap();
assert_eq!(hello, "Hello");

Structs

Immutable, reference counted, UTF-8 text

Mutable UTF-8 text buffer