debug_iterator-0.1.0 doesn't have any documentation.
debug_iterator
debug_iterator
This is a simple iterator adapter thats is applicable to iterators where the Iterator::Item is std::fmt::Debug
It prints to stderr
by default, but using the feature 'logging' prints out to the log
crate facade.
use DebugIterator as _;
let everyone_is_named_bob = "Bob".to_string;
let iter =
.map
.map
.clone;
// debug ("{:?}")
iter.debug.for_each;
// Person { name: "Bob", age: 4 }
// Person { name: "Bob", age: 8 }
// Person { name: "Bob", age: 12 }
// debug_pretty ("{:#?}")
iter.debug_pretty.for_each;
// Person {
// name: "Bob",
// age: 4,
// }
// Person {
// name: "Bob",
// age: 8,
// }
// Person {
// name: "Bob",
// age: 12,
// }
// '{:?}' with a `&str` prefix:
iter.debug_prefix.for_each;
// This person is: Person { name: "Bob", age: 4 }
// This person is: Person { name: "Bob", age: 8 }
// This person is: Person { name: "Bob", age: 12 }
// '{:#?}' with a `&str` prefix:
iter.debug_prefix_pretty.for_each;
// This person is: Person {
// name: "Bob",
// age: 4,
// }
// This person is: Person {
// name: "Bob",
// age: 8,
// }
// This person is: Person {
// name: "Bob",
// age: 12,
// }
License: 0BSD