Skip to content

Commit af7dc42

Browse files
committed
add note on insta-stable and IntoOwned usefulness
1 parent 6952692 commit af7dc42

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

text/0000-entry-into-owned.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ get-like calls.
149149
never needs to manually implement. If there was support for `where A != B`
150150
clauses we could get rid of the `RefIntoOwned` trait, but that would still
151151
leave `IntoOwned` (which is strictly more general than the existing `ToOwned`
152-
trait).
152+
trait). On the other hand `IntoOwned` may be independently useful in generic
153+
contexts.
153154

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

164+
4. The implementation would be insta-stable. There's no real way of
165+
feature-gating this.
166+
163167
# Alternatives
164168
[alternatives]: #alternatives
165169

0 commit comments

Comments
 (0)