set_modification_panic_fn

Function set_modification_panic_fn 

Source
pub unsafe fn set_modification_panic_fn(panic_fn: fn())
Expand description

Sets an alternative function to be called by the Drop implementation of TempInstMut when it encounters an illegal modification.

ยงSafety