diff --git a/book/contents/img/trait-object-01.svg b/book/contents/img/trait-object-01.svg new file mode 100644 index 00000000..9538ae1d --- /dev/null +++ b/book/contents/img/trait-object-01.svg @@ -0,0 +1,3 @@ + + +
ptr
ptr
Box<T>
Box<T>
T
T
ptr
ptr
Box<dyn Trait>
Box<dyn Trait>
T
T
vptr
vptr
destructor
destructor
size
size
align
align
methods...
methods...
ptr
ptr
size
size
fn
fn
allocation
allocation
T
T
pointer / usize
pointer / usize
fields
fields
function
function
heap allocation
heap allocation
user defined type
user defined type
https://doc.rust-lang.org/reference/type-layout.html
https://doc.rust-lang.org/reference/type-layout....
vtable
vtable
Viewer does not support full SVG 1.1
\ No newline at end of file