Skip to main content

VmtInstance

Trait VmtInstance 

Source
pub trait VmtInstance<T: 'static>: 'static + VmtLayout {
    const VTABLE: &'static Self::Layout<T>;
}
Expand description

Provides compile-time virtual method table references for the concrete type T.

This trait is implemented on the vtable trait object, e.g. dyn MyVtable.

Required Associated Constants§

Source

const VTABLE: &'static Self::Layout<T>

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§