[][src]Trait vtable::HasStaticVTable

pub unsafe trait HasStaticVTable<VT: ?Sized> where
    VT: VTableMeta
{ pub fn static_vtable() -> &'static VT::VTable; }

Allow to associate a VTable with a type.

Safety: the VTABLE and STATIC_VTABLE need to be a a valid virtual table corresponding to pointer to Self instance.

Required methods

pub fn static_vtable() -> &'static VT::VTable[src]

Safety: must be a valid VTable for Self

Loading content...

Implementors

Loading content...