#iterator #base #enumerate #plus #add #no-alloc

no-std enumerate-base

Plus the count of Iterator::enumerate by base

2 releases

Uses new Rust 2024

0.1.1 Sep 27, 2025
0.1.0 Sep 27, 2025

#164 in No standard library

Download history 137/week @ 2025-09-21 112/week @ 2025-09-28 19/week @ 2025-10-05 6/week @ 2025-10-12 3/week @ 2025-10-19

277 downloads per month

MIT license

6KB
80 lines

Plus the count of Iterator::enumerate by base

Example

use crate::enumerate_base::EnumerateBaseExt as _;
let arr = ['a', 'b', 'c', 'd'];
let iter = arr.into_iter().enumerate().base(2);

assert_eq!(iter.collect::<Vec<_>>(), vec![
    (2, 'a'),
    (3, 'b'),
    (4, 'c'),
    (5, 'd'),
]);

No runtime deps