Expand description
Immutable pool storage and iteration. Immutable string storage backed by one byte buffer and one offset table.
The layout is:
bytes: all UTF-8 string bytes concatenatedoffsets: start offset for each string, plus one final sentinel- strings are not NUL-terminated by default; boundaries come from offsets
For n strings, offsets.len() == n + 1.
String i is bytes[offsets[i]..offsets[i + 1]].
Structs§
- String
Table - Immutable string storage.
- String
Table Iter - Iterator returned by
StringTable::iter.
Type Aliases§
- String
Pool - Alias for
StringTable. - String
Pool Iter - Alias for
StringTableIter.