Skip to main content

vtable_size

Function vtable_size 

Source
pub unsafe fn vtable_size(ptr: *const ()) -> usize
🔬This is a nightly-only experimental API. (core_intrinsics)
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Expand description

The intrinsic will return the size stored in that vtable.

§Safety

ptr must point to a vtable.