Function vtable_size

unsafe fn vtable_size(ptr: *const ()) -> usize

The intrinsic will return the size stored in that vtable.

Safety

ptr must point to a vtable.