mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 18:40:57 +03:00
Use turbofish for size_of<T> and align_of<T> in docs
This commit is contained in:
@@ -1313,7 +1313,7 @@ pub unsafe fn read_volatile(self) -> T
|
||||
unsafe { read_unaligned(self) }
|
||||
}
|
||||
|
||||
/// Copies `count * size_of<T>` bytes from `self` to `dest`. The source
|
||||
/// Copies `count * size_of::<T>()` bytes from `self` to `dest`. The source
|
||||
/// and destination may overlap.
|
||||
///
|
||||
/// NOTE: this has the *same* argument order as [`ptr::copy`].
|
||||
@@ -1333,7 +1333,7 @@ pub unsafe fn read_volatile(self) -> T
|
||||
unsafe { copy(self, dest, count) }
|
||||
}
|
||||
|
||||
/// Copies `count * size_of<T>` bytes from `self` to `dest`. The source
|
||||
/// Copies `count * size_of::<T>()` bytes from `self` to `dest`. The source
|
||||
/// and destination may *not* overlap.
|
||||
///
|
||||
/// NOTE: this has the *same* argument order as [`ptr::copy_nonoverlapping`].
|
||||
|
||||
@@ -1397,7 +1397,7 @@ pub unsafe fn read_volatile(self) -> T
|
||||
unsafe { read_unaligned(self) }
|
||||
}
|
||||
|
||||
/// Copies `count * size_of<T>` bytes from `self` to `dest`. The source
|
||||
/// Copies `count * size_of::<T>()` bytes from `self` to `dest`. The source
|
||||
/// and destination may overlap.
|
||||
///
|
||||
/// NOTE: this has the *same* argument order as [`ptr::copy`].
|
||||
@@ -1417,7 +1417,7 @@ pub unsafe fn read_volatile(self) -> T
|
||||
unsafe { copy(self, dest, count) }
|
||||
}
|
||||
|
||||
/// Copies `count * size_of<T>` bytes from `self` to `dest`. The source
|
||||
/// Copies `count * size_of::<T>()` bytes from `self` to `dest`. The source
|
||||
/// and destination may *not* overlap.
|
||||
///
|
||||
/// NOTE: this has the *same* argument order as [`ptr::copy_nonoverlapping`].
|
||||
@@ -1437,7 +1437,7 @@ pub unsafe fn read_volatile(self) -> T
|
||||
unsafe { copy_nonoverlapping(self, dest, count) }
|
||||
}
|
||||
|
||||
/// Copies `count * size_of<T>` bytes from `src` to `self`. The source
|
||||
/// Copies `count * size_of::<T>()` bytes from `src` to `self`. The source
|
||||
/// and destination may overlap.
|
||||
///
|
||||
/// NOTE: this has the *opposite* argument order of [`ptr::copy`].
|
||||
@@ -1457,7 +1457,7 @@ pub unsafe fn read_volatile(self) -> T
|
||||
unsafe { copy(src, self, count) }
|
||||
}
|
||||
|
||||
/// Copies `count * size_of<T>` bytes from `src` to `self`. The source
|
||||
/// Copies `count * size_of::<T>()` bytes from `src` to `self`. The source
|
||||
/// and destination may *not* overlap.
|
||||
///
|
||||
/// NOTE: this has the *opposite* argument order of [`ptr::copy_nonoverlapping`].
|
||||
|
||||
@@ -988,7 +988,7 @@ pub unsafe fn read_volatile(self) -> T
|
||||
unsafe { ptr::read_unaligned(self.as_ptr()) }
|
||||
}
|
||||
|
||||
/// Copies `count * size_of<T>` bytes from `self` to `dest`. The source
|
||||
/// Copies `count * size_of::<T>()` bytes from `self` to `dest`. The source
|
||||
/// and destination may overlap.
|
||||
///
|
||||
/// NOTE: this has the *same* argument order as [`ptr::copy`].
|
||||
@@ -1008,7 +1008,7 @@ pub unsafe fn read_volatile(self) -> T
|
||||
unsafe { ptr::copy(self.as_ptr(), dest.as_ptr(), count) }
|
||||
}
|
||||
|
||||
/// Copies `count * size_of<T>` bytes from `self` to `dest`. The source
|
||||
/// Copies `count * size_of::<T>()` bytes from `self` to `dest`. The source
|
||||
/// and destination may *not* overlap.
|
||||
///
|
||||
/// NOTE: this has the *same* argument order as [`ptr::copy_nonoverlapping`].
|
||||
@@ -1028,7 +1028,7 @@ pub unsafe fn read_volatile(self) -> T
|
||||
unsafe { ptr::copy_nonoverlapping(self.as_ptr(), dest.as_ptr(), count) }
|
||||
}
|
||||
|
||||
/// Copies `count * size_of<T>` bytes from `src` to `self`. The source
|
||||
/// Copies `count * size_of::<T>()` bytes from `src` to `self`. The source
|
||||
/// and destination may overlap.
|
||||
///
|
||||
/// NOTE: this has the *opposite* argument order of [`ptr::copy`].
|
||||
@@ -1048,7 +1048,7 @@ pub unsafe fn read_volatile(self) -> T
|
||||
unsafe { ptr::copy(src.as_ptr(), self.as_ptr(), count) }
|
||||
}
|
||||
|
||||
/// Copies `count * size_of<T>` bytes from `src` to `self`. The source
|
||||
/// Copies `count * size_of::<T>()` bytes from `src` to `self`. The source
|
||||
/// and destination may *not* overlap.
|
||||
///
|
||||
/// NOTE: this has the *opposite* argument order of [`ptr::copy_nonoverlapping`].
|
||||
|
||||
Reference in New Issue
Block a user