[−][src]Function rosy::vm::destroy
pub unsafe fn destroy() -> Result<(), DestroyError>
Destructs the Ruby VM, runs its finalization processes, and frees all resources used by it.
Returns an exit code on error appropriate for passing into
std::process::exit
.
Safety
The caller must ensure that no VM resources are being used by other threads or will continue to be used after this function finishes.
After this function is called, it will no longer be possible to call
init
.