std::intrinsics

Function vtable_size

Source
pub unsafe fn vtable_size(_ptr: *const ()) -> usize
🔬This is a nightly-only experimental API. (core_intrinsics)
Expand description

The intrinsic will return the size stored in that vtable.

§Safety

ptr must point to a vtable.