1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-04-27 01:27:37 +02:00

Use a consistent order in memory layout of trait objects example.

This commit is contained in:
Andrew Walbran 2023-01-16 15:41:17 +00:00
parent 5cbb8d4c27
commit 1c7ce1cac6

View File

@ -54,13 +54,13 @@ Memory layout after allocating `xs`:
: | | '---->| "<str as Display>::fmt" | : : | | '---->| "<str as Display>::fmt" | :
: | | +-------------------------+ : : | | +-------------------------+ :
: | | : : | | :
: | | +-------------------------+ : : | | +----+----+----+----+ :
: | '-->| "<i32 as Display>::fmt" | : : | '-->| 7b | 00 | 00 | 00 | :
: | +-------------------------+ :
: | :
: | +----+----+----+----+ : : | +----+----+----+----+ :
: '---->| 7b | 00 | 00 | 00 | : : | :
: +----+----+----+----+ : : | +-------------------------+ :
: '---->| "<i32 as Display>::fmt" | :
: +-------------------------+ :
: : : :
: : : :
'- - - - - - - - - - - - - - - - - - - - - - - -' '- - - - - - - - - - - - - - - - - - - - - - - -'