/// Create a new instance from the given lock. Sets `dirty` to `true` when created.
Create a new instance from the given lock. Sets `dirty` to `true` when created.
Create a new instance from the given lock . Sets ` dirty ` to ` true ` when created .
pub fn from_lock(lock: RwLock<T>) -> DirtyCheckLock<T> {
        DirtyCheckLock {
            lock,
            dirty: AtomicBool::new(true),
        }
    }
pub fn from_lock ( lock : RwLock < T > ) -> DirtyCheckLock < T > { DirtyCheckLock { lock , dirty : AtomicBool :: new ( true ) , } }
Create a new instance from the given lock.
Create a new instance from the given lock .
lock
RwLock<T>