What is Allocator::by_ref for?
Rust Internals [Unofficial]
May 26, 2026
What's the benefit of these kind of associated functions over impl AsMut<Self> for ...?
And, having AsRef and AsMut in mind, why is it called by_ref and not by_mut although it returns a mutable reference?
Discussion in the ATmosphere