1use parking_lot::{ 2 lock_api::RwLockWriteGuard, RawRwLock, 3}; 4 5use crate::RWT; 6 7impl<R, W> RWT<R, W> { 8 pub fn write(&self) -> RwLockWriteGuard<RawRwLock, W> { 9 self.writable.write() 10 } 11}