rfcs
rfcs copied to clipboard
RFCs for changes to Rust
Hi, Right now If there's a Fn* trait that has 2 parameters of the same type it's really easy to confuse which is which. i.e.: ``` type Callback = FnMut(&[u8],...
## Motivation Data structures which closely fit a single inheritance model can be very efficiently implemented in C++. Where high performance (both space and time) is crucial there is distinct...
**Issue by [ghost](https://github.com/ghost)** _Sunday Mar 17, 2013 at 02:56 GMT_ _For earlier discussion, see https://github.com/rust-lang/rust/issues/5417_ _This issue was labelled with: A-libs, A-traits, B-RFC in the Rust repository_ --- Since I've...
There are various [crates](https://crates.io/crates/enum-iterator) that allow for iterating over the constants in an enum, but such a core feature should be part of the standard library.
```rust /// Trims this slice from the left. fn trim_left_matches bool>(&self, f: F) -> &[T] { let mut res = self; while res.len() > 0 && f(res[0]) { res =...
Use case: I'm trying to merge `BTreeMap`s, but in the case of a duplicate key, I'd prefer to add the values instead of ignoring the first. To do this, I...
[Rendered](https://github.com/dancrossnyc/rust-rfcs/blob/master/text/0000-volatile-copy-and-set.md) Stabilize the `volatile_copy_memory`, `volatile_copy_nonoverlapping_memory` and `volatile_set_memory` intrinsics as `ptr::copy_volatile`, `ptr::copy_nonoverlapping_volatile` and `ptr::write_bytes_volatile`, respectively. I initiated discussion on this back in June here: https://internals.rust-lang.org/t/pre-rfc-stabilize-volatile-copy-and-set-functions/9872 Unfortunately, it fell off my plate,...
Wishlist: functions with keyword args, optional args, and/or variable-arity argument (varargs) lists
A portion of the community (and of the core team) sees one or more of the following features as important for programmer ergonomics: - keyword-based parameters (as opposed to position-based...
cc https://github.com/rust-lang/rust/issues/54185 r? @pnkfelix [Rendered](https://github.com/JohnTitor/rfcs/blob/update-rfc-2093/text/2093-infer-outlives.md)
This RFC proposes to add niches to reference-like types by exploiting unused bit patterns caused by alignment requirements. [Rendered](https://github.com/moulins/rfcs/blob/6ec77d55147d7c06ece56e2a44ddee56ee8b5cf4/text/3204-references-alignment-niches.md) [Previous discussion on IRLO](https://internals.rust-lang.org/t/pre-rfc-add-alignment-niches-for-references/15693)