1 unstable release
0.1.0 | Nov 11, 2021 |
---|
#740 in Memory management
36KB
589 lines
bytes-text
Text
is to Bytes
what String
is to Vec<u8>
Example
let text = Text::from("Hello, world!");
println!("{}", text);
let hello = text.get(..5).unwrap();
assert_eq!(hello, "Hello");
(this crate is not offically related to bytes
)
License
This project is licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Dependencies
~180KB