Trait cglue::trait_group::CGlueObjBuild [−][src]
pub trait CGlueObjBuild<S>: CGlueObjRef<S> { unsafe fn cobj_build(&self, new: Self::ContType) -> Self; }
Required methods
unsafe fn cobj_build(&self, new: Self::ContType) -> Self
unsafe fn cobj_build(&self, new: Self::ContType) -> Self
Construct an object from self vtables and a new object
Safety
It is imporant to make sure new
uses the same type as the one in the self instance,
because otherwise wrong functions will be invoked.
Implementors
impl<T: Deref<Target = F> + ContextRef<ObjType = F>, F, V, S: Default> CGlueObjBuild<S> for CGlueTraitObj<'_, T, V, S>