Function insert_instance

Source
pub fn insert_instance<T>(
    ptr: *mut Box<dyn Plugin<T>>,
    plugin: Box<dyn Plugin<T>>,
)
Expand description

Inserts a plugin into an uninitialized pointer, preventing the drop on the uninitialized memory that would happen with a simple assignment