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ยง
- Extract
Utf8 Error - An error returned by
StrChunk::extract_utf8
. - StrChunk
- A reference counted contiguous UTF-8 slice in memory.
- StrChunk
Mut - A unique reference to a contiguous UTF-8 slice in memory.