Fix intra-doc links from pointer appearing in windows HANDLE type alias
This commit is contained in:
parent
6f552c800b
commit
2ce7cd906b
@ -106,7 +106,7 @@ pub const fn with_metadata_of<U>(self, meta: *const U) -> *mut U
|
|||||||
/// with [`cast_mut`] on `*const T` and may have documentation value if used instead of implicit
|
/// with [`cast_mut`] on `*const T` and may have documentation value if used instead of implicit
|
||||||
/// coercion.
|
/// coercion.
|
||||||
///
|
///
|
||||||
/// [`cast_mut`]: #method.cast_mut
|
/// [`cast_mut`]: pointer::cast_mut
|
||||||
#[stable(feature = "ptr_const_cast", since = "1.65.0")]
|
#[stable(feature = "ptr_const_cast", since = "1.65.0")]
|
||||||
#[rustc_const_stable(feature = "ptr_const_cast", since = "1.65.0")]
|
#[rustc_const_stable(feature = "ptr_const_cast", since = "1.65.0")]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
@ -117,7 +117,7 @@ pub const fn cast_const(self) -> *const T {
|
|||||||
/// Casts a pointer to its raw bits.
|
/// Casts a pointer to its raw bits.
|
||||||
///
|
///
|
||||||
/// This is equivalent to `as usize`, but is more specific to enhance readability.
|
/// This is equivalent to `as usize`, but is more specific to enhance readability.
|
||||||
/// The inverse method is [`from_bits`](#method.from_bits-1).
|
/// The inverse method is [`from_bits`](pointer#method.from_bits-1).
|
||||||
///
|
///
|
||||||
/// In particular, `*p as usize` and `p as usize` will both compile for
|
/// In particular, `*p as usize` and `p as usize` will both compile for
|
||||||
/// pointers to numeric types but do very different things, so using this
|
/// pointers to numeric types but do very different things, so using this
|
||||||
@ -153,7 +153,7 @@ pub fn to_bits(self) -> usize
|
|||||||
/// Creates a pointer from its raw bits.
|
/// Creates a pointer from its raw bits.
|
||||||
///
|
///
|
||||||
/// This is equivalent to `as *mut T`, but is more specific to enhance readability.
|
/// This is equivalent to `as *mut T`, but is more specific to enhance readability.
|
||||||
/// The inverse method is [`to_bits`](#method.to_bits-1).
|
/// The inverse method is [`to_bits`](pointer#method.to_bits-1).
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
@ -303,7 +303,7 @@ pub const fn to_raw_parts(self) -> (*mut (), <T as super::Pointee>::Metadata) {
|
|||||||
///
|
///
|
||||||
/// For the mutable counterpart see [`as_mut`].
|
/// For the mutable counterpart see [`as_mut`].
|
||||||
///
|
///
|
||||||
/// [`as_uninit_ref`]: #method.as_uninit_ref-1
|
/// [`as_uninit_ref`]: pointer#method.as_uninit_ref-1
|
||||||
/// [`as_mut`]: #method.as_mut
|
/// [`as_mut`]: #method.as_mut
|
||||||
///
|
///
|
||||||
/// # Safety
|
/// # Safety
|
||||||
@ -369,7 +369,7 @@ pub const fn to_raw_parts(self) -> (*mut (), <T as super::Pointee>::Metadata) {
|
|||||||
///
|
///
|
||||||
/// For the mutable counterpart see [`as_uninit_mut`].
|
/// For the mutable counterpart see [`as_uninit_mut`].
|
||||||
///
|
///
|
||||||
/// [`as_ref`]: #method.as_ref-1
|
/// [`as_ref`]: pointer#method.as_ref-1
|
||||||
/// [`as_uninit_mut`]: #method.as_uninit_mut
|
/// [`as_uninit_mut`]: #method.as_uninit_mut
|
||||||
///
|
///
|
||||||
/// # Safety
|
/// # Safety
|
||||||
@ -624,7 +624,7 @@ pub fn mask(self, mask: usize) -> *mut T {
|
|||||||
/// For the shared counterpart see [`as_ref`].
|
/// For the shared counterpart see [`as_ref`].
|
||||||
///
|
///
|
||||||
/// [`as_uninit_mut`]: #method.as_uninit_mut
|
/// [`as_uninit_mut`]: #method.as_uninit_mut
|
||||||
/// [`as_ref`]: #method.as_ref-1
|
/// [`as_ref`]: pointer#method.as_ref-1
|
||||||
///
|
///
|
||||||
/// # Safety
|
/// # Safety
|
||||||
///
|
///
|
||||||
@ -689,7 +689,7 @@ pub fn mask(self, mask: usize) -> *mut T {
|
|||||||
/// For the shared counterpart see [`as_uninit_ref`].
|
/// For the shared counterpart see [`as_uninit_ref`].
|
||||||
///
|
///
|
||||||
/// [`as_mut`]: #method.as_mut
|
/// [`as_mut`]: #method.as_mut
|
||||||
/// [`as_uninit_ref`]: #method.as_uninit_ref-1
|
/// [`as_uninit_ref`]: pointer#method.as_uninit_ref-1
|
||||||
///
|
///
|
||||||
/// # Safety
|
/// # Safety
|
||||||
///
|
///
|
||||||
@ -779,7 +779,7 @@ pub const fn guaranteed_ne(self, other: *mut T) -> Option<bool>
|
|||||||
///
|
///
|
||||||
/// This function is the inverse of [`offset`].
|
/// This function is the inverse of [`offset`].
|
||||||
///
|
///
|
||||||
/// [`offset`]: #method.offset-1
|
/// [`offset`]: pointer#method.offset-1
|
||||||
///
|
///
|
||||||
/// # Safety
|
/// # Safety
|
||||||
///
|
///
|
||||||
@ -2051,7 +2051,7 @@ pub unsafe fn get_unchecked_mut<I>(self, index: I) -> *mut I::Output
|
|||||||
///
|
///
|
||||||
/// For the mutable counterpart see [`as_uninit_slice_mut`].
|
/// For the mutable counterpart see [`as_uninit_slice_mut`].
|
||||||
///
|
///
|
||||||
/// [`as_ref`]: #method.as_ref-1
|
/// [`as_ref`]: pointer#method.as_ref-1
|
||||||
/// [`as_uninit_slice_mut`]: #method.as_uninit_slice_mut
|
/// [`as_uninit_slice_mut`]: #method.as_uninit_slice_mut
|
||||||
///
|
///
|
||||||
/// # Safety
|
/// # Safety
|
||||||
|
Loading…
Reference in New Issue
Block a user