mirror of
https://github.com/uutils/coreutils
synced 2024-12-18 09:03:14 +00:00
0a3e2216d7
Add the `WordCountable::lines()` method that returns an iterator over lines of a file-like object. This mirrors the `std::io::BufRead::lines()` method, with some minor differences due to the particular use case of `wc`. This commit also creates a new module, `countable.rs`, to contain the `WordCountable` trait and the new `Lines` struct returned by `lines()`. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |