libs-team icon indicating copy to clipboard operation
libs-team copied to clipboard

The home of the library team

Results 178 libs-team issues
Sort by recently updated
recently updated
newest added

# Proposal ## Problem statement Provide `TryFrom` implementation for `&[[T; N]]` as a more convenient wrapper around `[T]::as_chunks`. ## Motivation, use-cases Unstable `[T]::as_chunks` method allows converting `&[T]` into `&[[T; N]]`....

T-libs-api
api-change-proposal

Had this thought regarding if we can infer the time it takes for object to be executed in a given OS thread context, instead of relying on the `std::time::Instant` to...

# Proposal (Originally I've posted this to but I've noticed this place is more reachable by the libs team) ## Problem statement Currently, [`std::fmt::Formatter::alternate`](https://doc.rust-lang.org/std/fmt/struct.Formatter.html#method.alternate) feature is meant to support just...

T-libs-api
api-change-proposal

# Proposal: Add `{Ref,RefMut}::try_map` method ## Problem statement [The `filter_map` method](https://doc.rust-lang.org/stable/std/cell/struct.Ref.html#method.filter_map) introduced in 1.63 extended [the existing `map` method](https://doc.rust-lang.org/stable/std/cell/struct.Ref.html#method.map) by allowing the conversion to be fallible. However, in case of...

T-libs-api
api-change-proposal

# Proposal ## Problem statement Values initialized by MaybeUninit ref APIs and MaybeUninit slice APIs will have their destructors leaked unless the user manually drops them. ## Motivating examples or...

T-libs-api
api-change-proposal

# Proposal ## Problem statement If I want to use a mutable vector to iterate over the same vector. I can't do this without the borrow checker starts to complain...

T-libs-api
api-change-proposal

# Proposal ## Problem statement In some cases it desirable to get division result and ensure that the division has no remainder. For example, a function which works with memory...

T-libs-api
api-change-proposal

# Proposal ## Problem statement The `HashMap` and `BTreeMap` entry APIs make it possible to operate on an item that is either already in a map _or_ on a newly...

T-libs-api
api-change-proposal

# Proposal ## Problem statement The only way to construct a `NonNull` from a (mutable) reference is to either use `NonNull::new_unchecked` or `NonNull::from`. The former requires `unsafe` in addition to...

T-libs-api
api-change-proposal

# Proposal ## Problem statement Rust's `Path` types require this slash to treat paths as a directory. While methods like `push` will always treat the current path as a directory,...

T-libs-api
api-change-proposal