fat pointer
A pointer that carries a second word of information, like a length or a vtable.
A fat (wide) pointer is two words: a data pointer plus metadata, which is a length for slices and str and a vtable pointer for trait objects.
Loading interactive…
Examples
On a 64-bit machine
size_of::<&Email>()is 8, whilesize_of::<&dyn Notifier>(),size_of::<Box<dyn Notifier>>()andsize_of::<&str>()are each 16.
See also