VTableOf

Trait VTableOf 

Source
pub unsafe trait VTableOf<T: Dynamic<Self::Bounds>>: VTable {
    // Required method
    fn instance() -> Self;
}
Expand description

Generate VTable instance for type.

The type T must satisfy the dynamic trait bounds given by Self::Bounds.

§Safety

Required Methods§

Source

fn instance() -> Self

Get an instance of the vtable for the type 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§

Source§

impl<'a, 'b, T, B: IsBound> VTableOf<T> for &'b LifetimeVTable<'a, B>
where T: Dynamic<B> + StaticForm<'a>,

Source§

impl<'a, T, B: IsBound> VTableOf<T> for &'a StaticVTable<B>
where T: Dynamic<B> + 'static,

Source§

impl<'a, T, B: IsBound> VTableOf<T> for LifetimeVTable<'a, B>
where T: Dynamic<B> + StaticForm<'a>,

Source§

impl<'a, T: VTable, U: Dynamic<T::Bounds>> VTableOf<U> for Unaligned<&'a T>
where &'a T: VTableOf<U, Bounds = T::Bounds>,

Source§

impl<T, B: IsBound> VTableOf<T> for StaticVTable<B>
where T: Dynamic<B> + 'static,