#slice #iterator #collection #chain #together #itertools

no-std slice-utils

A collection of slice utils, like itertools

8 stable releases

2.1.0 Apr 4, 2024
2.0.3 Mar 21, 2024
2.0.2 Mar 20, 2024
1.0.2 Mar 18, 2024
1.0.1 Mar 17, 2024

#355 in Algorithms

Download history 181/week @ 2024-03-11 460/week @ 2024-03-18 134/week @ 2024-04-01

775 downloads per month

MIT license

61KB
1.5K SLoC

::slice-utils

See Slice and children.

This is a collection of utilities for slices, similar to those found on iterators. The goal is to be as close to feature-parity with iterators as possible, while maintaining no_std compatibility.

The core of this crate is providing non-contiguous slices. For example, Slice::chain allows you to join two slices together, clearly breaking continuity. This results in an Iterator-like API.

License

Licensed under the MIT license.

Dependencies