pub fn lock(&self) -> LockResult<MutexGuard<T>> {
        unsafe {
            self.inner.lock.lock();
            MutexGuard::new(&*self.inner, &self.data)
        }
    }
/// Acquires a mutex, blocking the current thread until it is able to do so.
///
/// This function will block the local thread until it is available to acquire
/// the mutex. Upon returning, the thread is the only thread with the mutex
/// held. An RAII guard is returned to allow scoped unlock of the lock. When
/// the guard goes out of scope, the mutex will be unlocked.
///
/// # Failure
///
/// If another user of this mutex panicked while holding the mutex, then
/// this call will return an error once the mutex is acquired.
Acquires a mutex, blocking the current thread until it is able to do so.
This function will block the local thread until it is available to acquire
the mutex. Upon returning, the thread is the only thread with the mutex
held. An RAII guard is returned to allow scoped unlock of the lock. When
the guard goes out of scope, the mutex will be unlocked.
Acquires a mutex blocking the current thread until it is able to do so . This function will block the local thread until it is available to acquire the mutex . Upon returning the thread is the only thread with the mutex held . An RAII guard is returned to allow scoped unlock of the lock . When the guard goes out of scope the mutex will be unlocked .
pub fn lock(&self) -> LockResult<MutexGuard<T>> {
        unsafe {
            self.inner.lock.lock();
            MutexGuard::new(&*self.inner, &self.data)
        }
    }
pub fn lock ( & self ) -> LockResult < MutexGuard < T > > { unsafe { self . inner . lock . lock ( ) ; MutexGuard :: new ( & * self . inner , & self . data ) } }
Acquires a mutex, blocking the current thread until it is able to do so.
Acquires a mutex blocking the current thread until it is able to do so .
&self
&self
failure
If another user of this mutex panicked while holding the mutex, then
this call will return an error once the mutex is acquired.
If another user of this mutex panicked while holding the mutex then this call will return an error once the mutex is acquired .