#iterator #no-alloc #debug-iterator

no-std iter-debug

impl Debug for iterators using a wrapper

3 stable releases

1.0.2 Feb 7, 2026
1.0.1 Jun 3, 2025
1.0.0 Apr 3, 2024

#467 in Debugging

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.

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.2

  • Do not error on repeated formats

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