pub fn take_alloc_error_hook() -> fn(Layout)
Expand description
Unregisters the current allocation error hook, returning it.
See also the function set_alloc_error_hook
.
If no custom hook is registered, the default hook will be returned.
pub fn take_alloc_error_hook() -> fn(Layout)
Unregisters the current allocation error hook, returning it.
See also the function set_alloc_error_hook
.
If no custom hook is registered, the default hook will be returned.