pub trait CapeCreateInstance {
// Required method
fn create_instance(instance: *mut *mut ICapeInterface) -> CapeResult;
}Expand description
CapeCreateInstance is creates an instance of a PMC object. This trait is typically implemented by the cape_object_implementation! macro and only for objects created with the cape_object_implementation! macro, which do not take any arguments for construction.
Required Methods§
fn create_instance(instance: *mut *mut ICapeInterface) -> CapeResult
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.