pub fn try_lock(&self) -> Option<SpinlockGuard<T>> {
        if self.acquire() {
            Some(SpinlockGuard { spinlock: self })
        } else {
            None
        }
    }
/// Try once to get the lock without spinning.
Try once to get the lock without spinning.
Try once to get the lock without spinning .
pub fn try_lock(&self) -> Option<SpinlockGuard<T>> {
        if self.acquire() {
            Some(SpinlockGuard { spinlock: self })
        } else {
            None
        }
    }
pub fn try_lock ( & self ) -> Option < SpinlockGuard < T > > { if self . acquire ( ) { Some ( SpinlockGuard { spinlock : self } ) } else { None } }
Try once to get the lock without spinning.
Try once to get the lock without spinning .
&self