[libs] Add Read::take_while #70920
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
In #70772 I proposed adding
BufRead::read_while
. But as @HeroicKatora pointed out in #70772 (comment)Read::take_while
would achieve many of the same benefits with fewer downsides. This would act as a counterpart toRead::take
, similar toIterator::take_while
.Examples
The text was updated successfully, but these errors were encountered: