#utf-8

bytesstr

An immutable reference-counted UTF8 String

3 stable releases

1.0.2 May 23, 2021

#1110 in Data structures

Download history 944/week @ 2024-07-23 599/week @ 2024-07-30 854/week @ 2024-08-06 391/week @ 2024-08-13 602/week @ 2024-08-20 526/week @ 2024-08-27 330/week @ 2024-09-03 441/week @ 2024-09-10 528/week @ 2024-09-17 503/week @ 2024-09-24 459/week @ 2024-10-01 558/week @ 2024-10-08 583/week @ 2024-10-15 484/week @ 2024-10-22 797/week @ 2024-10-29 771/week @ 2024-11-05

2,762 downloads per month
Used in 8 crates (6 directly)

MIT license

9KB
132 lines

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.


lib.rs:

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

Dependencies

~135–330KB