bytes_text/lib.rs
1//! `Text` is to [`Bytes`](https://docs.rs/bytes/1/bytes/struct.Bytes.html) what `String` is to `Vec<u8>`
2//!
3//! # Example
4//!
5//! ```
6//! use bytes_text::Text;
7//!
8//! let text = Text::from("Hello, world!");
9//! println!("{}", text);
10//!
11//! let hello = text.get(..5).unwrap();
12//! assert_eq!(hello, "Hello");
13//!
14//! ```
15
16#![warn(missing_docs)]
17#![warn(rustdoc::missing_doc_code_examples)] // this doesn't seem to do anything
18
19mod text;
20mod text_mut;
21
22pub use text::Text;
23pub use text_mut::TextMut;