no-std iter-debug

impl Debug for iterators using a wrapper

1 stable release

1.0.0 Apr 3, 2024

#599 in Debugging

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