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
u32
instead ofusize
. - TryFrom
StrError - The error returned when a
&str
conversion to&Str32
orString32
would require a buffer larger thanu32::MAX
bytes. - TryFrom
String Error - The error returned when a
String
conversion toString32
would require a buffer larger thanu32::MAX
bytes.