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