mmtk::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§

  • This module provides an iterator that groups adjacent items with the same key.
  • This module is for allocating large arrays or vectors with initial zero values.

Structs§

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