Skip to main content

Module string

Module string 

Source
Expand description

Growable UTF-8 string with an explicit allocator.

ExString is a thin wrapper around ExVec<u8> that maintains the invariant that the byte buffer is valid UTF-8. It implements fmt::Write so it can be used as the target of write! / writeln!.

Like all collections in this crate, ExString never touches the global allocator — every allocation is routed through the provided Allocator reference.

Structs§

ExString
A growable, allocator-backed UTF-8 string.