Expand description
CKB utilities.
Collection of frequently used utilities.
Re-exports§
pub use parking_lot;
Modules§
- strings
- Utilities for std strings.
Macros§
- shrink_
to_ fit - Shrinks the map
$map
when it reserves more than$threshold
slots for future entries.
Structs§
- Condvar
- A Condition Variable
- Linked
Hash Map - A linked hash map.
- Linked
Hash MapEntries - An insertion-order iterator over a
LinkedHashMap
’s entries represented as anOccupiedEntry
. - Linked
Hash Set - A HashSet that holds elements in insertion order.
Type Aliases§
- Mutex
- A mutual exclusion primitive useful for protecting shared data
- Mutex
Guard - An RAII implementation of a “scoped lock” of a mutex. When this structure is dropped (falls out of scope), the lock will be unlocked.
- RwLock
- A reader-writer lock
- RwLock
Read Guard - RAII structure used to release the shared read access of a lock when dropped.
- RwLock
Write Guard - RAII structure used to release the exclusive write access of a lock when dropped.