Expand description
Primitives for doing something exactly once.
Structs
A simple primitive for ensuring something is done exactly once. Not thread-safe.
A simple primitive for ensuring something is done exactly once. DoOnceSync is thread-safe
and uses internal mutability, so you can do_once
with an immutable reference.
A simple once-initialized immutable-ish reference for easy global statics.