What is Allocator::by_ref for?
Rust Internals [Unofficial]
May 25, 2026
FeldrinH:
It seems to simply return a shared reference to the allocator, so how is it any different from a simple borrow?
Kinda like https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.by_ref?
Discussion in the ATmosphere