#string #size #small

string32

A string that is indexed by u32 instead of usize

2 unstable releases

0.2.0 May 30, 2021
0.1.0 Apr 20, 2021

#2182 in Data structures

Unlicense OR MIT

37KB
685 lines

string32

A string that is indexed by u32 instead of usize.

License: MIT License: Unlicense crates.io docs.rs


lib.rs:

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.

Dependencies

~28KB