#utf-8 #string #zero-copy

bytesstr

An immutable reference-counted UTF8 String

3 stable releases

1.0.2 May 23, 2021

#2027 in Data structures

Download history 95/week @ 2023-12-18 77/week @ 2023-12-25 71/week @ 2024-01-01 160/week @ 2024-01-08 90/week @ 2024-01-15 111/week @ 2024-01-22 120/week @ 2024-01-29 174/week @ 2024-02-05 235/week @ 2024-02-12 180/week @ 2024-02-19 132/week @ 2024-02-26 91/week @ 2024-03-04 125/week @ 2024-03-11 149/week @ 2024-03-18 156/week @ 2024-03-25 170/week @ 2024-04-01

616 downloads per month
Used in 5 crates

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–345KB