3 stable releases

1.0.2 May 23, 2021

#2825 in Data structures

Download history 1017/week @ 2025-10-30 1160/week @ 2025-11-06 775/week @ 2025-11-13 1172/week @ 2025-11-20 740/week @ 2025-11-27 501/week @ 2025-12-04 335/week @ 2025-12-11 637/week @ 2025-12-18 273/week @ 2025-12-25 582/week @ 2026-01-01 1240/week @ 2026-01-08 770/week @ 2026-01-15 525/week @ 2026-01-22 1462/week @ 2026-01-29 658/week @ 2026-02-05 1160/week @ 2026-02-12

3,901 downloads per month
Used in 8 crates (6 directly)

MIT license

9KB
132 lines

BytesStr is an immutable reference counted UTF8-String useful for storing views into UTF8-encoded parts of data.


BytesStr

An immutable UTF8 string backed by Bytes.

Useful utility for storing views into UTF8 strings without allocating and copying.

This implementation has function that allow to create BytesStr from data that is partially UTF8 encoded.

Dependencies

~140–355KB