Module utils

Module utils 

Source
Expand description

Functions that make it easy to unwrap a value safely. These functions are provided to improve the ergonomics of using wrapped values in Rust. Examples of wrapped values are <Arc<RwLock<T>>, and <Option>.

Functions§

call_if_err
call_if_none
call_if_ok
call_if_some
unwrap_arc_read_lock_and_call
unwrap_arc_write_lock_and_call
with
with_mut

Type Aliases§

ReadGuarded
WriteGuarded