#iterator #no-alloc

no-std iter-debug

impl Debug for iterators using a wrapper

1 stable release

1.0.0 Apr 3, 2024

#312 in Debugging

Download history 96/week @ 2024-03-29 29/week @ 2024-04-05

125 downloads per month

MIT/Apache

8KB
100 lines

iter-debug

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

Allows debugging iterators without collecting them to a Vec first, such as for no_std environments.

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

For more information, read the docs.

Changelog

1.0.0

  • Initial release

License

MIT or Apache 2.0


lib.rs:

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

Allows debugging iterators without collecting them to a Vec first, such as for no_std environments.

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

No runtime deps