We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05812fa commit 94f3ce9Copy full SHA for 94f3ce9
src/libcore/alloc.rs
@@ -248,6 +248,9 @@ impl Layout {
248
/// will be properly aligned. Note that the result layout will
249
/// satisfy the alignment properties of both `self` and `next`.
250
///
251
+ /// The resulting layout will be the same as that of a C struct containing
252
+ /// two fields with the layouts of `self` and `next`, in that order.
253
+ ///
254
/// Returns `Some((k, offset))`, where `k` is layout of the concatenated
255
/// record and `offset` is the relative location, in bytes, of the
256
/// start of the `next` embedded within the concatenated record
0 commit comments