# bytes-text [![crates.io](https://img.shields.io/crates/v/bytes-text?style=flat-square)](https://crates.io/crates/bytes-text) [![docs](https://img.shields.io/docsrs/bytes-text?style=flat-square)](https://docs.rs/bytes-text) [![build status](https://img.shields.io/github/workflow/status/Cyborus04/bytes-text/Rust?style=flat-square)](https://github.com/Cyborus04/bytes-text/actions/workflows/rust.yml) `Text` is to [`Bytes`](https://docs.rs/bytes/1/bytes/struct.Bytes.html) what `String` is to `Vec` ## Example ```rust 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`](https://github.com/tokio-rs/bytes)) ## License This project is licensed under either of - [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) ([LICENSE-APACHE](LICENSE-APACHE)) - [MIT License](http://opensource.org/licenses/MIT) ([LICENSE-MIT](LICENSE-MIT)) 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.