Crates.io | bytes-text |
lib.rs | bytes-text |
version | 0.1.0 |
source | src |
created_at | 2021-11-11 17:56:07.443622 |
updated_at | 2021-11-11 17:56:07.443622 |
description | Reference-counted UTF-8 text |
homepage | https://github.com/Cyborus04/bytes-text |
repository | https://github.com/Cyborus04/bytes-text |
max_upload_size | |
id | 480312 |
size | 46,975 |
Text
is to Bytes
what String
is to Vec<u8>
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
)
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.