Type Definition abi_stable::sabi_trait::VTableTO_DT [−][src]
pub type VTableTO_DT<'borr, _Self, ErasedPtr, OrigPtr, I, Downcasting, V> = VTableTO<_Self, OrigPtr, Downcasting, V, VTableDT<'borr, _Self, ErasedPtr, OrigPtr, I, Downcasting>>;
Expand description
The VTableTO
passed to #[sabi_trait]
generated trait objects that have DynTrait
as their backend.
Implementations
impl<'borr, _Self, ErasedPtr, OrigPtr, I, Downcasting, V> VTableTO_DT<'borr, _Self, ErasedPtr, OrigPtr, I, Downcasting, V>
impl<'borr, _Self, ErasedPtr, OrigPtr, I, Downcasting, V> VTableTO_DT<'borr, _Self, ErasedPtr, OrigPtr, I, Downcasting, V>
pub const fn dyntrait_vtable(
&self
) -> VTableDT<'borr, _Self, ErasedPtr, OrigPtr, I, Downcasting>
pub const fn dyntrait_vtable(
&self
) -> VTableDT<'borr, _Self, ErasedPtr, OrigPtr, I, Downcasting>
Gets the vtable for DynTrait.
impl<'borr, _Self, ErasedPtr, OrigPtr, I, Downcasting, V> VTableTO_DT<'borr, _Self, ErasedPtr, OrigPtr, I, Downcasting, V>
impl<'borr, _Self, ErasedPtr, OrigPtr, I, Downcasting, V> VTableTO_DT<'borr, _Self, ErasedPtr, OrigPtr, I, Downcasting, V>
pub const unsafe fn for_dyntrait(
vtable: PrefixRef<V>,
for_dyn_trait: VTableDT<'borr, _Self, ErasedPtr, OrigPtr, I, Downcasting>
) -> Self
pub const unsafe fn for_dyntrait(
vtable: PrefixRef<V>,
for_dyn_trait: VTableDT<'borr, _Self, ErasedPtr, OrigPtr, I, Downcasting>
) -> Self
Wraps an erased vtable,alongside the vtable for DynTrait.
Safety
This has the same safety requirements as the ‘for_robject’ constructor