Crate strchunk[][src]

Expand description

UTF-8 string invariants for byte buffers provided by the bytes crate.

The strchunk crate builds on the efficient byte containers provided by the bytes crate. Its two container types, StrChunk and StrChunkMut, wrap around Bytes and BytesMut, respectively, adding a guarantee for the content to be valid UTF-8 to make it safely usable as Rust string slices.

Structs

An error returned by StrChunk::extract_utf8.

A reference counted contiguous UTF-8 slice in memory.

A unique reference to a contiguous UTF-8 slice in memory.