#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

15 releases

0.4.7 Dec 2, 2024
0.4.6 Nov 11, 2024
0.4.5 Jul 8, 2024
0.4.3 Mar 10, 2024

#330 in Data structures

Download history 156/week @ 2024-08-27 200/week @ 2024-09-03 219/week @ 2024-09-10 133/week @ 2024-09-17 131/week @ 2024-09-24 253/week @ 2024-10-01 141/week @ 2024-10-08 224/week @ 2024-10-15 128/week @ 2024-10-22 127/week @ 2024-10-29 442/week @ 2024-11-05 711/week @ 2024-11-12 637/week @ 2024-11-19 437/week @ 2024-11-26 704/week @ 2024-12-03 213/week @ 2024-12-10

2,125 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