#low-memory #fixed-length #array-string #collection #array #string #vec-string

no-std small-fixed-array

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

16 releases

new 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

#421 in Data structures

Download history 116/week @ 2024-10-26 197/week @ 2024-11-02 707/week @ 2024-11-09 620/week @ 2024-11-16 527/week @ 2024-11-23 466/week @ 2024-11-30 650/week @ 2024-12-07 147/week @ 2024-12-14 53/week @ 2024-12-21 157/week @ 2024-12-28 152/week @ 2025-01-04 284/week @ 2025-01-11 250/week @ 2025-01-18 200/week @ 2025-01-25 281/week @ 2025-02-01 448/week @ 2025-02-08

1,241 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