https://github.com/ksxgithub/fmt-iter
Print all items from an iterator
https://github.com/ksxgithub/fmt-iter
crate display iterator library no-std repeat rust tostring
Last synced: about 1 year ago
JSON representation
Print all items from an iterator
- Host: GitHub
- URL: https://github.com/ksxgithub/fmt-iter
- Owner: KSXGitHub
- License: mit
- Created: 2021-04-19T13:41:42.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-13T09:57:01.000Z (about 3 years ago)
- Last Synced: 2025-02-26T20:06:31.216Z (about 1 year ago)
- Topics: crate, display, iterator, library, no-std, repeat, rust, tostring
- Language: Rust
- Homepage: https://crates.io/crates/fmt-iter
- Size: 53.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# fmt-iter
[](https://github.com/KSXGitHub/fmt-iter/actions?query=workflow%3ATest)
[](https://crates.io/crates/fmt-iter)
Print all items from an iterator.
## Usage Examples
### Print all items from an array slice
```rust
use fmt_iter::FmtIter;
println!("{}", FmtIter::from(&[0, 12, 345]));
```
_Expected Output:_
```txt
012345
```
### Repeat a certain character multiple times
```rust
use fmt_iter::repeat;
println!("{}", repeat('x', 5));
```
_Expected Output:_
```txt
xxxxx
```
## License
[MIT](https://git.io/JOgrR) © [Hoàng Văn Khải](https://ksxgithub.github.io/).