libs-team
libs-team copied to clipboard
The home of the library team
# Proposal ## Problem statement Many formatting implementations may want to print only a subset of items from a list, set, or map. Subsets can be printed directly (e.g., `.item(my_slice[..10])`)...
# Proposal ## Problem statement To provide an API for comparing `TypeId`s in `const` contexts that can be stabilized "soon" along with `TypeId::of` without depending on `const` in trait impls....
# Proposal ## Problem statement Add a convenient `IntoIterator` enabled function for chaining two iterators. ## Motivation, use-cases - A similar function already exists [`core::iter::zip`](https://doc.rust-lang.org/stable/std/iter/fn.zip.html) (added in https://github.com/rust-lang/rust/pull/82917) - There...
# Goals Many of the new MaybeUninit APIs deal with slices or arrays. The current state of affairs is unfortunate because it leads to API duplication. An API may need...
# Proposal ## Problem statement `Iterator::fold` is an extremely useful API to process all the elements in an iterator. Sometimes you don't have a sensible initial value. This is where...
I figured it would be best to file an issue here, even though it would ultimately result in a PR for the rust repo. When opening up a tracking issue...
# Proposal ## Problem statement Tracking issue: https://github.com/rust-lang/rust/issues/69835 ## Current unstable API ```rust // core;:mem unsafe fn size_of_val_raw(val: *const T) -> usize; unsafe fn align_of_val_raw(val: *const T) -> usize; //...
# Proposal ## Problem statement Some iterator types can support peeking à la `Peekable`. Sometimes, peeking is required for such an iterator, but methods specific to the original iterator’s type...
# Proposal Add a method to `std::ffi::OsStr` that splits it into `(&str /* prefix */, &OsStr /* suffix */)`, where the prefix contains valid Unicode and the suffix is the...
# Proposal ## Problem statement Currently, to use mathematical constants such as π, you need to use `std::f32::consts::PI`. This proposal is for adding associated constants to the `f32` and `f64`...