| Crates.io | lines-inclusive |
| lib.rs | lines-inclusive |
| version | 0.0.0 |
| created_at | 2025-01-28 09:50:06.797367+00 |
| updated_at | 2025-01-28 09:50:06.797367+00 |
| description | Split a string into multiple lines, every line may end with ` ` |
| homepage | |
| repository | https://github.com/KSXGitHub/lines-inclusive.git |
| max_upload_size | |
| id | 1533366 |
| size | 6,214 |
Split a string into multiple lines, every line may end with \n
use lines_inclusive::LinesInclusive;
let lines: Vec<_> = "ABC\nDEF\nGHI".lines_inclusive().collect();
assert_eq!(lines, ["ABC\n", "DEF\n", "GHI"]);