Crate fmt_iter

Source
Expand description

Print all items from an iterator.

Example: Print all items from an array slice

use fmt_iter::FmtIter;
println!("{}", FmtIter::from(&[0, 12, 345]));

Expected Output:

012345

Example: Repeat a certain character multiple times

use fmt_iter::repeat;
println!("{}", repeat('x', 5));

Expected Output:

xxxxx

Structs§

FmtIter
Wrap around an Iterator to print all items.

Functions§

repeat
Print a certain value multiple times.