Aria Desires
Aria Desires
Coercions and Casting were both originally written in the context of "the reference is dead, I need to be the reference", so they can be happily moved to the reference....
Missing from this list is also IndexGet, which is the "returns a value" version of Index.
Ah I assumed IndexMove took self by-value (given the comparison to DerefMove), but if it takes &mut self, then never mind.
I think IndexMove is more of an intellectual curiosity than a thing we have a concrete usecase for. On Tue, May 1, 2018 at 9:12 PM, Alexis Hunt wrote: >...
I still agree with this design, but there's some concern that it is optimizing for the general case, and not the common case.
So I've thought about this more. I can't think of any example where you'd "want the key back" that wouldn't be equivalent to "I want to clone on insert". I...
IntoOwned implies BorrowFrom, which we already pervasively assume implies Hash/Eq/Ord are equivalent for.
Of note: the current implementation actually fails to pick up .ps1 scripts, which honestly I'm not sure matters but makes me a bit sad. This is a consequence of me...
I think it would be much more interesting to investigate moving to a layout where all of the fields are in the same allocation as the keys and hashes, with...
As an aside this would be an exciting experiment because we would have a very optimized implementation to compare the performance difference of this "trick" to in an apples-to-apples way....