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 |
#417 in No standard library
251 downloads per month
Used in 2 crates
7KB
106 lines
fmt-iter
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
lib.rs
:
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
Dependencies
~0.7–1.2MB
~25K SLoC