pub trait HasVtable<V>: Sized + HasVtables {
// Required methods
fn get(from: &WithVtables<Self>) -> &VtableRef<V>;
fn get_mut(from: &mut WithVtables<Self>) -> Pin<&mut VtableRef<V>>;
}
Required Methods§
fn get(from: &WithVtables<Self>) -> &VtableRef<V>
fn get_mut(from: &mut WithVtables<Self>) -> Pin<&mut VtableRef<V>>
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.