Skip to content

Commit

Permalink
Intra doc links for the pointer primitive
Browse files Browse the repository at this point in the history
  • Loading branch information
poliorcetics committed Nov 30, 2020
1 parent 9c27ccf commit 4e54b4c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
10 changes: 5 additions & 5 deletions library/core/src/ptr/const_ptr.rs
Expand Up @@ -723,7 +723,7 @@ impl<T: ?Sized> *const T {
///
/// 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
Expand All @@ -743,7 +743,7 @@ impl<T: ?Sized> *const 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
Expand All @@ -761,7 +761,7 @@ impl<T: ?Sized> *const 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
Expand All @@ -779,7 +779,7 @@ impl<T: ?Sized> *const 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)
Expand All @@ -797,7 +797,7 @@ impl<T: ?Sized> *const T {
///
/// 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)
Expand Down
28 changes: 14 additions & 14 deletions library/core/src/ptr/mut_ptr.rs
Expand Up @@ -830,7 +830,7 @@ impl<T: ?Sized> *mut T {
///
/// 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
Expand All @@ -850,7 +850,7 @@ impl<T: ?Sized> *mut 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
Expand All @@ -868,7 +868,7 @@ impl<T: ?Sized> *mut 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
Expand All @@ -886,7 +886,7 @@ impl<T: ?Sized> *mut 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)
Expand All @@ -904,7 +904,7 @@ impl<T: ?Sized> *mut T {
///
/// 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)
Expand All @@ -922,7 +922,7 @@ impl<T: ?Sized> *mut 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_from(self, src: *const T, count: usize)
Expand All @@ -940,7 +940,7 @@ impl<T: ?Sized> *mut T {
///
/// 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)
Expand All @@ -955,7 +955,7 @@ impl<T: ?Sized> *mut T {
///
/// 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) {
Expand All @@ -968,7 +968,7 @@ impl<T: ?Sized> *mut T {
///
/// 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)
Expand All @@ -984,7 +984,7 @@ impl<T: ?Sized> *mut 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)
Expand All @@ -1004,7 +1004,7 @@ impl<T: ?Sized> *mut T {
///
/// 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)
Expand All @@ -1022,7 +1022,7 @@ impl<T: ?Sized> *mut 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)
Expand All @@ -1038,7 +1038,7 @@ impl<T: ?Sized> *mut 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
Expand All @@ -1055,7 +1055,7 @@ impl<T: ?Sized> *mut 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)
Expand Down

0 comments on commit 4e54b4c

Please sign in to comment.