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

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

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.