Skip to content

Commit 3fe52dd

Browse files
committed
Mention AsRef
1 parent bd98894 commit 3fe52dd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

text/0000-as-cell.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ However, if changes as proposed in https://github.com/rust-lang/rfcs/pull/1651 s
131131
get implemented, the `Copy` bound might get relaxed or removed entirely,
132132
which would affect the ergonomics here.
133133

134-
The proposed implementation only covers the base case `&mut T -> &Cell<T>`
134+
It might also be possible to add `AsRef` implementations for this conversion.
135+
136+
The proposal only covers the base case `&mut T -> &Cell<T>`
135137
and the trivially implementable extension to `[T]`,
136138
but in theory this conversion could be enabled for
137139
many "higher level mutable reference" types, like for example

0 commit comments

Comments
 (0)