Expand description
A string that is indexed by u32 instead of usize.
On 64-bit platforms, String32 only requires 16 bytes to store the pointer, length, and capacity. String by comparison requires 24 bytes, plus padding.
Structsยง
- Str32
- A slice of a
String32. - String32
- A string that is indexed by
u32instead ofusize. - TryFrom
StrError - The error returned when a
&strconversion to&Str32orString32would require a buffer larger thanu32::MAXbytes. - TryFrom
String Error - The error returned when a
Stringconversion toString32would require a buffer larger thanu32::MAXbytes.