pub trait LockMap<T: ?Sized> {
    fn map<F, R>(&mut self, f: F) -> R
    where
        F: FnOnce(&mut Self) -> R
, { ... } }
Expand description

A simple trait to map the return value of a Mutex in a nice little closure

Provided Methods

Maps the return value of a Mutex in a closure, dropping and unlocking the Mutex after execution and returning the result

Implementations on Foreign Types

Implementors