Expand description
UTF-8 string that lives on the stack and spills to the heap.
Provides SmallString — backed by heapless::String<N> (stack) and
std::string::String (heap). Spill uses from_utf8_unchecked to skip a redundant
UTF-8 scan since both sources already guarantee valid UTF-8, giving a memcpy-only
migration cost.
Implements Deref<Target = str> so all &str methods are available directly.
AnyString provides an object-safe trait over both backends.
Structs§
- Small
String - A string that lives on the stack for
Nbytes, then spills to the heap.
Traits§
- AnyString
- A trait for abstraction over different string types (Stack, Heap, Small).