4 releases (2 breaking)

0.2.1 Apr 26, 2021
0.2.0 Apr 26, 2021
0.1.0 Apr 19, 2021
0.0.0 Apr 19, 2021

#23 in #repeat

Download history 58/week @ 2025-09-18 59/week @ 2025-09-25 61/week @ 2025-10-02 64/week @ 2025-10-09 79/week @ 2025-10-16 46/week @ 2025-10-23 43/week @ 2025-10-30 35/week @ 2025-11-06 35/week @ 2025-11-13 73/week @ 2025-11-20 71/week @ 2025-11-27 80/week @ 2025-12-04 61/week @ 2025-12-11 23/week @ 2025-12-18 15/week @ 2025-12-25 11/week @ 2026-01-01

118 downloads per month
Used in 2 crates

MIT license

7KB
106 lines

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

fmt-iter

Test Crates.io Version

Print all items from an iterator.

Usage Examples

Print all items from an array slice

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

Expected Output:

012345

Repeat a certain character multiple times

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

Expected Output:

xxxxx

License

MIT © Hoàng Văn Khải.

Dependencies

~0.6–1.1MB
~22K SLoC