Function lgalloc::deallocate

source ·
pub fn deallocate(handle: Handle)
Expand description

Free the memory referenced by handle, which has been obtained from allocate.

This function cannot fail. The caller must not access the memory after freeing it. The caller is responsible for dropping/forgetting data.

§Panics

Panics if the thread local variable has been dropped, see std::thread::LocalKey for details.