Module octseq::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.


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