1use parking_lot::RwLockWriteGuard; 2 3use crate::RWT; 4 5impl<R, W> RWT<R, W> { 6 #[must_use] 7 pub fn try_write(&self) -> Option<RwLockWriteGuard<W>> { 8 self.writable.try_write() 9 } 10}