Crate iter_debug

Source
Expand description

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

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§

IterDebug
The whole point, see the crate docs.

Traits§

DebugIterator
Helper trait that lets you .debug() an iterator, like the other combinators.