Yay, filed a docs fix for std! First attempt in a year to try and contribute to rust-lang/rusthttps://github.com/rust-lang/rust/pull/70730 …
-
-
5. Add BufRead::read_while. This provides a non-inclusive counterpart to `BufRead::read_until` (e.g. doesn't include the last byte seen). Which is incredibly useful when you want to do some quick parsing on a stream.pic.twitter.com/o9XGNsRjTi
Show this thread -
-
6. Add core::ready! macro This is one of the pieces provided by futures-core and used in virtually every Future, Stream, AsyncRead, and AsyncWrite impl. Being only 5 lines this makes a lot of sense for the stdlib to provide. https://github.com/rust-lang/rust/pull/70817 …pic.twitter.com/XLCvyGKvB1
Show this thread -
7. Found some stray comments that are no longer accurate.https://github.com/rust-lang/rust/pull/70824 …
Show this thread -
(At this point I don't remember why I was intimidated by making PRs to rust-lang/rust. Folks have been nothing but lovely, and all feedback has been really good!)
Show this thread -
8. Add core::future::{ready,pending} These functions allow creating futures that either immediately resolve, or never resolve, which is incredibly useful for examples and to teach folks about future's semantics.https://github.com/rust-lang/rust/pull/70834 …
Show this thread -
9. Add Integer::{log,log2,log10}
@substack wrote correct int log implementations for Rust, and I authored the PR to add them to the stdlib! This is useful because using float-based log operations don't work for all ints, and conversions can lead to bugshttps://github.com/rust-lang/rust/pull/70835 …Show this thread
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.