Crate string32

Source
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ยง

  • A slice of a String32.
  • A string that is indexed by u32 instead of usize.
  • The error returned when a &str conversion to &Str32 or String32 would require a buffer larger than u32::MAX bytes.
  • The error returned when a String conversion to String32 would require a buffer larger than u32::MAX bytes.