#string #byte #raw

raw-string

RawStr/RawString are like str/String, but without any guaranteed encoding

13 releases

Uses old Rust 2015

0.3.5 Jan 10, 2019
0.3.4 Jan 10, 2019
0.3.2 Sep 23, 2018
0.2.4 Sep 9, 2018
0.1.1 Sep 8, 2018

#56 in #raw

Download history 146/week @ 2023-12-04 203/week @ 2023-12-11 169/week @ 2023-12-18 118/week @ 2023-12-25 276/week @ 2024-01-01 317/week @ 2024-01-08 251/week @ 2024-01-15 264/week @ 2024-01-22 323/week @ 2024-01-29 335/week @ 2024-02-05 185/week @ 2024-02-12 277/week @ 2024-02-19 243/week @ 2024-02-26 276/week @ 2024-03-04 336/week @ 2024-03-11 410/week @ 2024-03-18

1,274 downloads per month
Used in 2 crates (via spirv-builder)

BSD-2-Clause

27KB
782 lines

RawString and RawStr are the equivalents of String and str, or OsString and OsStr, but without any guarantees about the encoding.

They are useful in all places where you would otherwise use Vec<u8> and [u8] to represent your strings.

No runtime deps

Features