Text is to Bytes what String is to Vec<u8>
Text
Bytes
String
Vec<u8>
use bytes_text::Text; let text = Text::from("Hello, world!"); println!("{}", text); let hello = text.get(..5).unwrap(); assert_eq!(hello, "Hello");