Expand description
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⚠
- Returns the value of type
T
represented by the all-zero byte-pattern.