Macros

A wrapper around std::num::NonZeroUsize to no longer worry about unwrap()
Utility macro for writing secure arithmetic operations in order to avoid integer overflows.

Structs

A simple wrapper around the lock() function of a std::sync::Mutex The only difference is that you don’t need to call unwrap() on it.
An RAII implementation of a “scoped lock” of a mutex. When this structure is dropped (falls out of scope), the lock will be unlocked.
A simple wrapper around the lock() function of a std::sync::RwLock The only difference is that you don’t need to call unwrap() on it.
RAII structure used to release the shared read access of a lock when dropped.
RAII structure used to release the exclusive write access of a lock when dropped.

Functions

Gives the duration since the Unix epoch, notice the expect.
Gives the duration of the given time since the Unix epoch, notice the expect.