| Crates.io | str-chunks |
| lib.rs | str-chunks |
| version | 0.2.0 |
| created_at | 2025-01-11 19:43:12.575842+00 |
| updated_at | 2025-01-15 17:59:51.890691+00 |
| description | implements char-wise chunked iteration of str |
| homepage | |
| repository | https://github.com/barrowsys/str-chunks |
| max_upload_size | |
| id | 1512617 |
| size | 36,023 |
implements char-wise chunked iteration of str
the methods str_chunks, str_chunks_exact, str_rchunks, and str_rchunks_exact
behave like the similarly named methods on slice,
but return string slices that are chunk_size chars long.
take note: these slices are not necessarily chunk_size bytes long. chunk.len() != chunk_size
import ImplStrChunks to get methods on str
Add to your Cargo.toml:
[dependencies]
str-chunks = "0.1.1"
See docs.rs for examples.
or just copy [src/str_chunks.rs] into your own project. im not your mom. dont forget to remove the #![no_std]