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

no-std small-fixed-array

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

12 unstable releases (3 breaking)

0.4.4 Apr 2, 2024
0.4.3 Mar 10, 2024
0.4.0 Feb 9, 2024
0.3.0 Jan 31, 2024
0.1.3 Jan 14, 2024

#1084 in Data structures

Download history 746/week @ 2024-01-13 1356/week @ 2024-01-20 340/week @ 2024-01-27 253/week @ 2024-02-03 240/week @ 2024-02-10 182/week @ 2024-02-17 205/week @ 2024-02-24 289/week @ 2024-03-02 1210/week @ 2024-03-09 707/week @ 2024-03-16 299/week @ 2024-03-23 465/week @ 2024-03-30 195/week @ 2024-04-06 187/week @ 2024-04-13 331/week @ 2024-04-20 397/week @ 2024-04-27

1,123 downloads per month

MIT license

39KB
894 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

~185KB