Expand description
Utilities funcitons for Rust This module works around limitations of the Rust programming language, and provides missing functionalities that we may expect the Rust programming language and its standard libraries to provide.
Modules§
- atomic_
box - rev_
group - This module provides an iterator that groups adjacent items with the same key.
- zeroed_
alloc - This module is for allocating large arrays or vectors with initial zero values.
Structs§
- Initialize
Once - InitializeOnce creates an uninitialized value that needs to be manually initialized later. InitializeOnce
guarantees the value is only initialized once. This type is used to allow more efficient reads.
Unlike the
lazy_static!which checks whether the static is initialized in every read, InitializeOnce has no extra check for reads.
Functions§
- cold 🔒
- debug_
process_ thread_ id - Create a formatted string that makes the best effort idenfying the current process and thread.
- likely
- min_
of_ usize - Const function for min value of two usize numbers.
- unlikely