#iterator #no-alloc #debug-iterator

no-std iter-debug

impl Debug for iterators using a wrapper

2 stable releases

1.0.1 Jun 3, 2025
1.0.0 Apr 3, 2024

#476 in Debugging

Download history 30/week @ 2025-06-05 1/week @ 2025-07-03 6/week @ 2025-08-21

92 downloads per month

MIT/Apache

9KB
99 lines

Repository Crates.io docs.rs MIT OR Apache-2.0

Allows debugging iterators without collecting them to a Vec first, useful in no_std environments or when you're lazy.

println!("{:?}", [1, 2, 3, 4].into_iter().map(|v| v * 2).debug());
// => [2, 4, 6, 8]

iter-debug

Repository Crates.io docs.rs MIT OR Apache-2.0

Allows debugging iterators without collecting them to a [Vec] first, useful in no_std environments or when you're lazy.

# use iter_debug::DebugIterator;
println!("{:?}", [1, 2, 3, 4].into_iter().map(|v| v * 2).debug());
// => [2, 4, 6, 8]

For more information, read the docs.

Changelog

1.0.1

  • Change some testing code
  • rsutil merge documentation overhaul

1.0.0

  • Initial release

License

MIT or Apache 2.0

No runtime deps