Intra doc links for the pointer primitive
This commit is contained in:
parent
9c27ccff19
commit
4e54b4c3e6
@ -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`]: ./ptr/fn.read.html
|
||||
/// [`ptr::read`]: 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`]: ./ptr/fn.read_volatile.html
|
||||
/// [`ptr::read_volatile`]: 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`]: ./ptr/fn.read_unaligned.html
|
||||
/// [`ptr::read_unaligned`]: 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`]: ./ptr/fn.copy.html
|
||||
/// [`ptr::copy`]: 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`]: ./ptr/fn.copy_nonoverlapping.html
|
||||
/// [`ptr::copy_nonoverlapping`]: copy_nonoverlapping()
|
||||
#[stable(feature = "pointer_methods", since = "1.26.0")]
|
||||
#[inline]
|
||||
pub unsafe fn copy_to_nonoverlapping(self, dest: *mut T, count: usize)
|
||||
|
@ -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`]: ./ptr/fn.read.html
|
||||
/// [`ptr::read`]: 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`]: ./ptr/fn.read_volatile.html
|
||||
/// [`ptr::read_volatile`]: 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`]: ./ptr/fn.read_unaligned.html
|
||||
/// [`ptr::read_unaligned`]: 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`]: ./ptr/fn.copy.html
|
||||
/// [`ptr::copy`]: 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`]: ./ptr/fn.copy_nonoverlapping.html
|
||||
/// [`ptr::copy_nonoverlapping`]: 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`]: ./ptr/fn.copy.html
|
||||
/// [`ptr::copy`]: 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`]: ./ptr/fn.copy_nonoverlapping.html
|
||||
/// [`ptr::copy_nonoverlapping`]: 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`]: ./ptr/fn.drop_in_place.html
|
||||
/// [`ptr::drop_in_place`]: 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`]: ./ptr/fn.write.html
|
||||
/// [`ptr::write`]: 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`]: ./ptr/fn.write_bytes.html
|
||||
/// [`ptr::write_bytes`]: 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`]: ./ptr/fn.write_volatile.html
|
||||
/// [`ptr::write_volatile`]: 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`]: ./ptr/fn.write_unaligned.html
|
||||
/// [`ptr::write_unaligned`]: 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`]: ./ptr/fn.replace.html
|
||||
/// [`ptr::replace`]: 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`]: ./ptr/fn.swap.html
|
||||
/// [`ptr::swap`]: swap()
|
||||
#[stable(feature = "pointer_methods", since = "1.26.0")]
|
||||
#[inline]
|
||||
pub unsafe fn swap(self, with: *mut T)
|
||||
|
Loading…
Reference in New Issue
Block a user