embedded-hal
embedded-hal copied to clipboard
Introduce `BufRead::skip_until`
trafficstars
I think this standard implementation could be useful for BufRead, based on:
- https://doc.rust-lang.org/src/std/io/mod.rs.html#2180
Because an EOF condition can appear here, I also think renaming ReadExactError -> OperationError to make it more general. Though, that also opens the door for more error variants being added to it, so perhaps it should be #[non_exhaustive]?