Module rafx_base::atomic_once_cell_array
source · Structs§
- A fixed-size array with
capacity
determined at run-time. The elements of the array are uninitialized. Elements may be initialized withset
and then retrieved as a reference withget
. Callingset
is thread-safe. The array will panic if thecapacity
is exceeded, or theindex
is out of range, or theset
function is called more than once on an index whenT
is not zero-sized. The array will only drop initialized elements.