#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

#2136 in Encoding

Download history 178/week @ 2024-04-07 200/week @ 2024-04-14 202/week @ 2024-04-21 258/week @ 2024-04-28 210/week @ 2024-05-05 261/week @ 2024-05-12 264/week @ 2024-05-19 176/week @ 2024-05-26 206/week @ 2024-06-02 150/week @ 2024-06-09 184/week @ 2024-06-16 174/week @ 2024-06-23 51/week @ 2024-06-30 159/week @ 2024-07-07 266/week @ 2024-07-14 165/week @ 2024-07-21

664 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