Function lrs::mem::uninit

Creates an uninitialized object.

Syntax

unsafe extern "rust-intrinsic" fn uninit<T>() -> T

Return value

Returns an uninitialized object.

Remarks

This is a very efficient way to create large objects that will later be initialized. Note that this is not the same as creating an object that contains the bytes that were previously stored in the memory location the object is stored in. If the returned object is used before it is properly initialized, the behavior is undefined.

See also