vtables

Trait VTable

Source
pub trait VTable {
    // Required method
    unsafe fn get_virtual<T: Sized>(&self, index: usize) -> T;
}

Required Methods§

Source

unsafe fn get_virtual<T: Sized>(&self, index: usize) -> T

§Safety

This calls function pointers from memory with arbitrary parameters. This is just about as unsafe as it gets.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§