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§
- unix
- Conversions only available on unix.
Structs§
- RawStr
- A
str
with unchecked contents. - RawString
- A
String
with unchecked contents. - Utf8
Chunk - A chunk of valid UTF-8, possibly followed by a broken character encoding.
- Utf8
Chunks Iter - An iterator over chunks of valid UTF-8 in a RawStr.
Traits§
- RawStr
Index - The equivalent of
SliceIndex
forRawStr
.