Module rust_util

Module rust_util 

Source
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§

InitializeOnce
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