pub fn try_lock(&self) -> Result<MutexGuard<T>, TryLock> {
        if unsafe { self.lock.try_lock() } {
            Ok(MutexGuard::new(self))
        } else {
            Err(TryLock::WouldBlock)
        }
    }
/// Attempts to acquire this lock.
///
/// If the lock could not be acquired, then [TryLock] is returned. Otherwise, an RAII guard is
/// returned.
Attempts to acquire this lock.
If the lock could not be acquired, then [TryLock] is returned. Otherwise, an RAII guard is
returned.
Attempts to acquire this lock . If the lock could not be acquired then [ TryLock ] is returned . Otherwise an RAII guard is returned .
pub fn try_lock(&self) -> Result<MutexGuard<T>, TryLock> {
        if unsafe { self.lock.try_lock() } {
            Ok(MutexGuard::new(self))
        } else {
            Err(TryLock::WouldBlock)
        }
    }
pub fn try_lock ( & self ) -> Result < MutexGuard < T > , TryLock > { if unsafe { self . lock . try_lock ( ) } { Ok ( MutexGuard :: new ( self ) ) } else { Err ( TryLock :: WouldBlock ) } }
Attempts to acquire this lock.
Attempts to acquire this lock .
&self