Module str

Source
Expand description

Strings atop octet sequences.

This module provides the type Str<Octets> that guarantees the same invariants – namely that the content is an UTF-8 encoded string – as the standard library’s str and String types but atop a generic octet sequence.

Structs§

FromUtf8Error
An error happened when converting octets into a string.
Str
A fixed length UTF-8 encoded string atop an octet sequence.
StrBuilder
A growable, UTF-8 encoded string atop an octets builder.