#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

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

#332 in Data structures

Download history 175/week @ 2024-08-18 145/week @ 2024-08-25 167/week @ 2024-09-01 195/week @ 2024-09-08 181/week @ 2024-09-15 158/week @ 2024-09-22 118/week @ 2024-09-29 254/week @ 2024-10-06 140/week @ 2024-10-13 238/week @ 2024-10-20 116/week @ 2024-10-27 200/week @ 2024-11-03 756/week @ 2024-11-10 583/week @ 2024-11-17 520/week @ 2024-11-24 423/week @ 2024-12-01

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

~195KB