Document stable size_of primitives and pointer size guarantees
This commit is contained in:
parent
b492405b1f
commit
548686ff12
2 changed files with 54 additions and 2 deletions
|
|
@ -710,6 +710,10 @@ mod prim_u128 { }
|
|||
//
|
||||
/// The pointer-sized signed integer type.
|
||||
///
|
||||
/// The size of this primitive is how many bytes it takes to reference any
|
||||
/// location in memory. For example, on a 32 bit target, this is 4 bytes
|
||||
/// and on a 64 bit target, this is 8 bytes.
|
||||
///
|
||||
/// *[See also the `std::isize` module](isize/index.html).*
|
||||
///
|
||||
/// However, please note that examples are shared between primitive integer
|
||||
|
|
@ -722,6 +726,10 @@ mod prim_isize { }
|
|||
//
|
||||
/// The pointer-sized unsigned integer type.
|
||||
///
|
||||
/// The size of this primitive is how many bytes it takes to reference any
|
||||
/// location in memory. For example, on a 32 bit target, this is 4 bytes
|
||||
/// and on a 64 bit target, this is 8 bytes.
|
||||
///
|
||||
/// *[See also the `std::usize` module](usize/index.html).*
|
||||
///
|
||||
/// However, please note that examples are shared between primitive integer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue