#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

new 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

#438 in Data structures

Download history 59/week @ 2024-07-22 191/week @ 2024-07-29 302/week @ 2024-08-05 176/week @ 2024-08-12 178/week @ 2024-08-19 171/week @ 2024-08-26 168/week @ 2024-09-02 172/week @ 2024-09-09 167/week @ 2024-09-16 168/week @ 2024-09-23 114/week @ 2024-09-30 245/week @ 2024-10-07 220/week @ 2024-10-14 165/week @ 2024-10-21 120/week @ 2024-10-28 279/week @ 2024-11-04

791 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

~195KB