#slice #iterator #utilities #collection #chain #api #non-contiguous

no-std slice-utils

A collection of slice utils, like itertools

10 stable releases

2.2.1 Sep 24, 2024
2.1.0 Apr 4, 2024
2.0.3 Mar 21, 2024
1.0.2 Mar 18, 2024

#1173 in Rust patterns

Download history 223/week @ 2024-09-20 85/week @ 2024-09-27 11/week @ 2024-10-04 1/week @ 2024-10-11

397 downloads per month

MIT license

72KB
2K 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