Expand description
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]
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.