[][src]Function message_plugins::insert_instance

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

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