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 @@ pub fn set_ptr_value(mut self, val: *const u8) -> Self {
///
/// 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 @@ pub unsafe fn read(self) -> 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 @@ pub unsafe fn read_volatile(self) -> 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 @@ pub unsafe fn read_unaligned(self) -> 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 @@ pub unsafe fn copy_to(self, dest: *mut T, count: usize)
///
/// 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)

View File

@ -830,7 +830,7 @@ pub fn set_ptr_value(mut self, val: *mut u8) -> Self {
///
/// 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
@ -850,7 +850,7 @@ pub unsafe fn read(self) -> 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
@ -868,7 +868,7 @@ pub unsafe fn read_volatile(self) -> 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
@ -886,7 +886,7 @@ pub unsafe fn read_unaligned(self) -> 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)
@ -904,7 +904,7 @@ pub unsafe fn copy_to(self, dest: *mut T, count: usize)
///
/// 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)
@ -922,7 +922,7 @@ pub unsafe fn copy_to_nonoverlapping(self, dest: *mut T, count: usize)
///
/// 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_from(self, src: *const T, count: usize)
@ -940,7 +940,7 @@ pub unsafe fn copy_from(self, src: *const T, count: usize)
///
/// 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_from_nonoverlapping(self, src: *const T, count: usize)
@ -955,7 +955,7 @@ pub unsafe fn copy_from_nonoverlapping(self, src: *const T, count: usize)
///
/// See [`ptr::drop_in_place`] for safety concerns and examples.
///
/// [`ptr::drop_in_place`]: drop_in_place()
/// [`ptr::drop_in_place`]: crate::ptr::drop_in_place()
#[stable(feature = "pointer_methods", since = "1.26.0")]
#[inline]
pub unsafe fn drop_in_place(self) {
@ -968,7 +968,7 @@ pub unsafe fn drop_in_place(self) {
///
/// See [`ptr::write`] for safety concerns and examples.
///
/// [`ptr::write`]: write()
/// [`ptr::write`]: crate::ptr::write()
#[stable(feature = "pointer_methods", since = "1.26.0")]
#[inline]
pub unsafe fn write(self, val: T)
@ -984,7 +984,7 @@ pub unsafe fn write(self, val: T)
///
/// See [`ptr::write_bytes`] for safety concerns and examples.
///
/// [`ptr::write_bytes`]: write_bytes()
/// [`ptr::write_bytes`]: crate::ptr::write_bytes()
#[stable(feature = "pointer_methods", since = "1.26.0")]
#[inline]
pub unsafe fn write_bytes(self, val: u8, count: usize)
@ -1004,7 +1004,7 @@ pub unsafe fn write_bytes(self, val: u8, count: usize)
///
/// See [`ptr::write_volatile`] for safety concerns and examples.
///
/// [`ptr::write_volatile`]: write_volatile()
/// [`ptr::write_volatile`]: crate::ptr::write_volatile()
#[stable(feature = "pointer_methods", since = "1.26.0")]
#[inline]
pub unsafe fn write_volatile(self, val: T)
@ -1022,7 +1022,7 @@ pub unsafe fn write_volatile(self, val: T)
///
/// See [`ptr::write_unaligned`] for safety concerns and examples.
///
/// [`ptr::write_unaligned`]: write_unaligned()
/// [`ptr::write_unaligned`]: crate::ptr::write_unaligned()
#[stable(feature = "pointer_methods", since = "1.26.0")]
#[inline]
pub unsafe fn write_unaligned(self, val: T)
@ -1038,7 +1038,7 @@ pub unsafe fn write_unaligned(self, val: T)
///
/// See [`ptr::replace`] for safety concerns and examples.
///
/// [`ptr::replace`]: replace()
/// [`ptr::replace`]: crate::ptr::replace()
#[stable(feature = "pointer_methods", since = "1.26.0")]
#[inline]
pub unsafe fn replace(self, src: T) -> T
@ -1055,7 +1055,7 @@ pub unsafe fn replace(self, src: T) -> T
///
/// See [`ptr::swap`] for safety concerns and examples.
///
/// [`ptr::swap`]: swap()
/// [`ptr::swap`]: crate::ptr::swap()
#[stable(feature = "pointer_methods", since = "1.26.0")]
#[inline]
pub unsafe fn swap(self, with: *mut T)