#inline #words #larger #allocated #stores #swift #array

trident

A struct that stores a T, either inline or, if T is larger than 3 words, allocated

3 unstable releases

0.2.1 Nov 27, 2021
0.2.0 Nov 27, 2021
0.1.0 Nov 22, 2021

#8 in #larger

MIT/Apache

11KB
256 lines

A struct that stores a T, either inline or, if T is larger than 3 words, allocated.

This mirrors how Swift's non-specialised array works.

No runtime deps