Expand description
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]
Structs§
- Iter
Debug - The whole point, see the crate docs.
Traits§
- Debug
Iterator - Helper trait that lets you
.debug()
an iterator, like the other combinators.