#array-string #low-memory #fixed-length #immutability #footprint #vec-string #fixed-array

no-std small-fixed-array

A crate providing fixed length immutable collections with a low memory footprint

16 releases

0.4.8 Feb 15, 2025
0.4.7 Dec 2, 2024
0.4.6 Nov 11, 2024
0.4.5 Jul 8, 2024
0.4.3 Mar 10, 2024

#752 in Data structures

Download history 474/week @ 2024-11-29 647/week @ 2024-12-06 155/week @ 2024-12-13 54/week @ 2024-12-20 82/week @ 2024-12-27 225/week @ 2025-01-03 235/week @ 2025-01-10 277/week @ 2025-01-17 223/week @ 2025-01-24 274/week @ 2025-01-31 329/week @ 2025-02-07 1232/week @ 2025-02-14 423/week @ 2025-02-21 306/week @ 2025-02-28 447/week @ 2025-03-07 425/week @ 2025-03-14

1,704 downloads per month

MIT license

40KB
914 lines

small-fixed-array

See module documentation or use cargo doc --open.


lib.rs:

A crate for FixedArray and FixedString, types to provide a smaller memory footprint in exchange for:

These types provide cheap conversions to [Vec] and String, to make up for most of these downsides, but it is still not recommended to use these collections for mutated values as you will see a performance downside.

These can be thought of as Box<[T]> and Box<str>, except the length is denoted as LenT, by default [u32].

Features

MSRV

The Minimum Supported Rust Version of this crate is 1.70.

It is considered a breaking change to raise this.

Dependencies

~190KB