#array #iterator #stack-allocated #chunks #collection #fixed

nightly no-std array-tools

A little collection of array-related utils aiming to make life easier

8 releases

0.3.2 Feb 22, 2021
0.3.1 Feb 22, 2021
0.2.10 Sep 22, 2019
0.2.6 Aug 7, 2019

#149 in No standard library

Download history 5/week @ 2024-02-14 28/week @ 2024-02-21 24/week @ 2024-02-28 2/week @ 2024-03-06 1/week @ 2024-03-13

59 downloads per month

Apache-2.0 OR MIT

60KB
1K SLoC

Array Tools

Crate Documentation Build Status Build status

A collection of tools to help dealing with our beloved ❤️ fixed size arrays (Including generic contexts).

Stability notice

Requires nightly.

This crate depends on FixedSizeArray trait, which is currently experimental. Because of this, crate is experimental as well. No other sources of severe breakage should be expected.

Features

  • Metafeature: all features below should work for arrays of any size.
  • Initialization with iterator.
  • Initialization with function (with or without index as argument).
  • Consuming iterator.
  • Consuming chunks iterator.
  • Consuming split.
  • Consuming join.
  • No dependency on std and no heap allocations, thanks to underlaying fixed-capacity stack-allocated deque-like structure.

Examples

See documentation for examples, it covers most if not all use cases.

Contributing

Contributions of any shape and form are welcome.

No runtime deps