1 stable release
1.0.0 | Apr 3, 2024 |
---|
#599 in Debugging
8KB
100 lines
iter-debug
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
:
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]