embedded-hal icon indicating copy to clipboard operation
embedded-hal copied to clipboard

Introduce `BufRead::skip_until`

Open peterkrull opened this issue 6 months ago • 0 comments
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]?

peterkrull avatar May 10 '25 11:05 peterkrull