#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

13 unstable releases (3 breaking)

0.4.5 Jul 8, 2024
0.4.4 Apr 2, 2024
0.4.3 Mar 10, 2024
0.4.0 Feb 9, 2024
0.1.3 Jan 14, 2024

#1322 in Data structures

Download history 439/week @ 2024-04-01 177/week @ 2024-04-08 255/week @ 2024-04-15 330/week @ 2024-04-22 379/week @ 2024-04-29 146/week @ 2024-05-06 183/week @ 2024-05-13 143/week @ 2024-05-20 170/week @ 2024-05-27 277/week @ 2024-06-03 235/week @ 2024-06-10 117/week @ 2024-06-17 37/week @ 2024-06-24 62/week @ 2024-07-01 206/week @ 2024-07-08 124/week @ 2024-07-15

439 downloads per month

MIT license

40KB
916 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

~200KB