Function std::alloc::take_oom_hook[][src]

pub fn take_oom_hook() -> fn(_: Layout)
🔬 This is a nightly-only experimental API. (oom_hook #51245)

Unregisters the current OOM hook, returning it.

See also the function set_oom_hook.

If no custom hook is registered, the default hook will be returned.