Module fat

Module fat 

Expand description

Fat pointer handling.

This assumes the memory representation of fat pointers. Although it is not guaranteed by Rust, it’s improbable that it will change. Still, when the pointer metadata APIs are stable, we should definitely move to them: https://github.com/rust-lang/rust/issues/81513

Functions§

from_raw_parts⚠
Create a fat pointer from a data address and a vtable address.
from_raw_parts_mut⚠
Create a mutable fat pointer from a data address and a vtable address.
vtable⚠
Extract the address to a trait object’s vtable.