Crate raw_string

source ·
Expand description

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.

Modules

Conversions only available on unix.

Structs

A str with unchecked contents.
A String with unchecked contents.
A chunk of valid UTF-8, possibly followed by a broken character encoding.
An iterator over chunks of valid UTF-8 in a RawStr.

Traits

The equivalent of SliceIndex for RawStr.