Crate ckb_util

Source
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
LinkedHashMap
A linked hash map.
LinkedHashMapEntries
An insertion-order iterator over a LinkedHashMap’s entries represented as an OccupiedEntry.
LinkedHashSet
A HashSet that holds elements in insertion order.

Type Aliases§

Mutex
A mutual exclusion primitive useful for protecting shared data
MutexGuard
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
RwLockReadGuard
RAII structure used to release the shared read access of a lock when dropped.
RwLockWriteGuard
RAII structure used to release the exclusive write access of a lock when dropped.