File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1446,6 +1446,15 @@ where
1446
1446
}
1447
1447
1448
1448
/// Return a mutable pointer to the first element in the array.
1449
+ ///
1450
+ /// This method attempts to unshare the data. If `S: DataMut`, then the
1451
+ /// data is guaranteed to be uniquely held on return.
1452
+ ///
1453
+ /// # Warning
1454
+ ///
1455
+ /// When accessing elements through this pointer, make sure to use strides
1456
+ /// obtained *after* calling this method, since the process of unsharing
1457
+ /// the data may change the strides.
1449
1458
#[ inline( always) ]
1450
1459
pub fn as_mut_ptr ( & mut self ) -> * mut A
1451
1460
where
@@ -1462,6 +1471,9 @@ where
1462
1471
}
1463
1472
1464
1473
/// Return a raw mutable view of the array.
1474
+ ///
1475
+ /// This method attempts to unshare the data. If `S: DataMut`, then the
1476
+ /// data is guaranteed to be uniquely held on return.
1465
1477
#[ inline]
1466
1478
pub fn raw_view_mut ( & mut self ) -> RawArrayViewMut < A , D >
1467
1479
where
You can’t perform that action at this time.
0 commit comments