ptr links

This commit is contained in:
Alexis Bourget
2020-10-13 08:59:45 +02:00
parent ac8d1173b5
commit af40c04301
2 changed files with 19 additions and 19 deletions

View File

@@ -723,7 +723,7 @@ impl<T: ?Sized> *const T {
///
/// See [`ptr::read`] for safety concerns and examples.
///
/// [`ptr::read`]: read()
/// [`ptr::read`]: crate::ptr::read()
#[stable(feature = "pointer_methods", since = "1.26.0")]
#[inline]
pub unsafe fn read(self) -> T
@@ -743,7 +743,7 @@ impl<T: ?Sized> *const T {
///
/// See [`ptr::read_volatile`] for safety concerns and examples.
///
/// [`ptr::read_volatile`]: read_volatile()
/// [`ptr::read_volatile`]: crate::ptr::read_volatile()
#[stable(feature = "pointer_methods", since = "1.26.0")]
#[inline]
pub unsafe fn read_volatile(self) -> T
@@ -761,7 +761,7 @@ impl<T: ?Sized> *const T {
///
/// See [`ptr::read_unaligned`] for safety concerns and examples.
///
/// [`ptr::read_unaligned`]: read_unaligned()
/// [`ptr::read_unaligned`]: crate::ptr::read_unaligned()
#[stable(feature = "pointer_methods", since = "1.26.0")]
#[inline]
pub unsafe fn read_unaligned(self) -> T
@@ -779,7 +779,7 @@ impl<T: ?Sized> *const T {
///
/// See [`ptr::copy`] for safety concerns and examples.
///
/// [`ptr::copy`]: copy()
/// [`ptr::copy`]: crate::ptr::copy()
#[stable(feature = "pointer_methods", since = "1.26.0")]
#[inline]
pub unsafe fn copy_to(self, dest: *mut T, count: usize)
@@ -797,7 +797,7 @@ impl<T: ?Sized> *const T {
///
/// See [`ptr::copy_nonoverlapping`] for safety concerns and examples.
///
/// [`ptr::copy_nonoverlapping`]: copy_nonoverlapping()
/// [`ptr::copy_nonoverlapping`]: crate::ptr::copy_nonoverlapping()
#[stable(feature = "pointer_methods", since = "1.26.0")]
#[inline]
pub unsafe fn copy_to_nonoverlapping(self, dest: *mut T, count: usize)