1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#![doc(test(attr(deny(warnings))))] #![warn(missing_docs)] //! # Extra utilities for the [bytes] crate. //! //! The [bytes] crate defines few traits and types to help with high-performance manipulation of //! byte arrays. Nevertheless, it is more of an interface-level of library (many other crates //! expose its types and traits in their own public interfaces) and therefore tries to be on the //! lean side. //! //! One often wishes for some more auxiliary functionality „around“ these types and that's what //! this crate aims to provide. //! //! ## The content //! //! * [SegmentedBuf] and [SegmentedSlice] for concatenating multiple buffers into a large one //! without copying the bytes. //! * [Str] and [StrMut] are wrappers around [Bytes][bytes::Bytes] and [BytesMut] //! respectively, providing a [String]-like interface. They allow splitting into owned //! sub-slices, similar to how the [Bytes] and [BytesMut] work. //! //! [Bytes]: bytes::Bytes //! [BytesMut]: bytes::BytesMut mod segmented; pub mod string; pub use segmented::{SegmentedBuf, SegmentedSlice}; pub use string::{Str, StrMut};