pub trait TupleExt01 { type T1; fn lock<R>(&mut self, f: impl FnOnce(&mut Self::T1) -> R) -> R; }
Auto-generated tuple implementation, see Mutex for details.
Mutex
Data protected by the mutex.
Creates a critical section and grants temporary access to the protected data.