7 unstable releases
0.4.1 | Nov 23, 2021 |
---|---|
0.4.0 | Jan 28, 2021 |
0.3.0 | Oct 29, 2020 |
0.2.0 | Dec 1, 2019 |
0.1.0-beta.1 | Jul 13, 2019 |
#1914 in Data structures
42KB
973 lines
String Chunks
A utility library for working with Unicode text in I/O.
The strchunk
crate provides efficient containers for working with UTF-8
encoded Unicode text in asynchronous, multithreaded I/O stacks.
It builds on the byte buffers provided by the bytes crate.
License
This project is licensed under the MIT license.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in strchunk
by you, shall be licensed as MIT, without any
additional terms or conditions.
lib.rs
:
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.
Dependencies
~190KB