Function std::alloc::take_alloc_error_hook
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.
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/alloc/fn.take_alloc_error_hook.html