Function core::mem::forgetStable[src]

pub unsafe fn forget<T>(thing: T)

Moves a thing into the void.

The forget function will take ownership of the provided value but neglect to run any required cleanup or memory management operations on it.

This function is the unsafe version of the drop function because it does not run any destructors.