Crate uninitialized [] [src]

Provides the option to use uninitialized memory for performance improvements.

uninitialized() is backed by std::mem::zeroed() unless the feature is toggled on. Downstream binary crates that want to take advantage of std::mem::uninitialized() should use the following in Cargo.toml:

[dependencies.uninitialized]
version = "*"
features = ["uninitialized"]

Constants

UNINITIALIZED

A constant indicating whether the uninitialized feature is enabled.

Functions

uninitialized

Bypasses Rust's normal memory-initialization checks by pretending to produce a value of type T, while doing nothing at all.