Skip to content
Prev Previous commit
Next Next commit
add note on insta-stable and IntoOwned usefulness
  • Loading branch information
cristicbz committed Oct 12, 2016
commit af7dc426fbbec98ec560d93bca8d69aa3ee799fc
6 changes: 5 additions & 1 deletion text/0000-entry-into-owned.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ get-like calls.
never needs to manually implement. If there was support for `where A != B`
clauses we could get rid of the `RefIntoOwned` trait, but that would still
leave `IntoOwned` (which is strictly more general than the existing `ToOwned`
trait).
trait). On the other hand `IntoOwned` may be independently useful in generic
contexts.

2. It does not offer a way of recovering a `!Clone` key when no `insert`
happens. This is somewhat orthogonal though and could be solved in a number
Expand All @@ -160,6 +161,9 @@ get-like calls.
exact parameters of specialisation change, and this particular pattern
doesn't work anymore, we'll have painted ourselves into a corner.

4. The implementation would be insta-stable. There's no real way of
feature-gating this.

# Alternatives
[alternatives]: #alternatives

Expand Down