#string #raw #byte

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

#2489 in Encoding

Download history 171/week @ 2024-07-27 173/week @ 2024-08-03 259/week @ 2024-08-10 171/week @ 2024-08-17 179/week @ 2024-08-24 170/week @ 2024-08-31 242/week @ 2024-09-07 272/week @ 2024-09-14 368/week @ 2024-09-21 1491/week @ 2024-09-28 1828/week @ 2024-10-05 3255/week @ 2024-10-12 2860/week @ 2024-10-19 3630/week @ 2024-10-26 4113/week @ 2024-11-02 3732/week @ 2024-11-09

14,874 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