#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

14 releases

0.4.6 Nov 11, 2024
0.4.5 Jul 8, 2024
0.4.4 Apr 2, 2024
0.4.3 Mar 10, 2024
0.1.3 Jan 14, 2024

#419 in Data structures

Download history 263/week @ 2024-08-02 166/week @ 2024-08-09 156/week @ 2024-08-16 208/week @ 2024-08-23 102/week @ 2024-08-30 243/week @ 2024-09-06 180/week @ 2024-09-13 180/week @ 2024-09-20 114/week @ 2024-09-27 282/week @ 2024-10-04 119/week @ 2024-10-11 245/week @ 2024-10-18 115/week @ 2024-10-25 175/week @ 2024-11-01 674/week @ 2024-11-08 577/week @ 2024-11-15

1,562 downloads per month

MIT license

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