enable

Function enable 

Source
pub unsafe fn enable(on: bool)
Expand description

Enables or disables the patch.

§Panics

Panics if the function does not look like expected, which is most likely to happen if std changes something internally, or if the compiler finds a better way to optimize it.

§Safety

Aside from the whole concept being inherently unsafe, this will probably have unexpected consequences if called in multi-threaded contexts.