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

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

#335 in Data structures

Download history 149/week @ 2024-12-15 45/week @ 2024-12-22 164/week @ 2024-12-29 155/week @ 2025-01-05 288/week @ 2025-01-12 313/week @ 2025-01-19 247/week @ 2025-01-26 225/week @ 2025-02-02 570/week @ 2025-02-09 1018/week @ 2025-02-16 393/week @ 2025-02-23 421/week @ 2025-03-02 452/week @ 2025-03-09 336/week @ 2025-03-16 367/week @ 2025-03-23 195/week @ 2025-03-30

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