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

#533 in No standard library

Download history 27/week @ 2024-12-16 29/week @ 2024-12-23 46/week @ 2024-12-30 106/week @ 2025-01-06 160/week @ 2025-01-13 4100/week @ 2025-01-20 50/week @ 2025-01-27 69/week @ 2025-02-03 101/week @ 2025-02-10 70/week @ 2025-02-17 167/week @ 2025-02-24 61/week @ 2025-03-03 112/week @ 2025-03-10 484/week @ 2025-03-17 618/week @ 2025-03-24 112/week @ 2025-03-31

1,330 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.7–1.1MB
~24K SLoC