Trait stabby_abi::vtable::IConstConstructor
source · pub trait IConstConstructor<'a, Source>: 'a + Copy + Freeze {
const VTABLE: Self;
const VTABLE_REF: &'a Self = _;
// Provided method
fn vtable() -> &'a Self { ... }
}
Expand description
Implementation detail for stabby’s version of dyn traits.
Any type that implements a trait ITrait
must implement IConstConstructor<VtITrait>
for stabby::dyn!(Ptr<ITrait>)::from(value)
to work.
Required Associated Constants§
Provided Associated Constants§
sourceconst VTABLE_REF: &'a Self = _
const VTABLE_REF: &'a Self = _
A reference to the vtable
Provided Methods§
Object Safety§
This trait is not object safe.