ABI compatibility: mention Result guarantee
This commit is contained in:
parent
c0838c8ebe
commit
b94f2931b3
@ -1761,6 +1761,8 @@ mod prim_ref {}
|
|||||||
/// - `i32` is ABI-compatible with `NonZero<i32>`, and similar for all other integer types.
|
/// - `i32` is ABI-compatible with `NonZero<i32>`, and similar for all other integer types.
|
||||||
/// - If `T` is guaranteed to be subject to the [null pointer
|
/// - If `T` is guaranteed to be subject to the [null pointer
|
||||||
/// optimization](option/index.html#representation), then `T` and `Option<T>` are ABI-compatible.
|
/// optimization](option/index.html#representation), then `T` and `Option<T>` are ABI-compatible.
|
||||||
|
/// Furthermore, if `U` satisfies the requirements [outlined here](result/index.html#representation),
|
||||||
|
/// then `T` and `Result<T, U>` and `Result<U, T>` are all ABI-compatible.
|
||||||
///
|
///
|
||||||
/// Furthermore, ABI compatibility satisfies the following general properties:
|
/// Furthermore, ABI compatibility satisfies the following general properties:
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user