We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 675defb commit c507654Copy full SHA for c507654
core/src/marker.rs
@@ -1372,3 +1372,12 @@ pub trait CoercePointeeValidated {
1372
pub trait Reborrow {
1373
// Empty.
1374
}
1375
+
1376
+/// Allows reborrowable value to be reborrowed as shared, creating a copy of
1377
+/// that disables the source for writes for the lifetime of the copy.
1378
+#[lang = "coerce_shared"]
1379
+#[unstable(feature = "reborrow", issue = "145612")]
1380
+pub trait CoerceShared: Reborrow {
1381
+ /// The type of this value when reborrowed as shared.
1382
+ type Target: Copy;
1383
+}
0 commit comments