pub fn new(value: T) -> Self {
        let data = SlockData {
            version: 0,
            value,
            hook: None,
        };
        Self {
            lock: Arc::new(RwLock::new(data)),
        }
    }
/// Create a new Slock with a given initial value.
Create a new Slock with a given initial value.
Create a new Slock with a given initial value .
pub fn new(value: T) -> Self {
        let data = SlockData {
            version: 0,
            value,
            hook: None,
        };
        Self {
            lock: Arc::new(RwLock::new(data)),
        }
    }
pub fn new ( value : T ) -> Self { let data = SlockData { version : 0 , value , hook : None , } ; Self { lock : Arc :: new ( RwLock :: new ( data ) ) , } }
Create a new Slock with a given initial value.
Create a new Slock with a given initial value .
value
T
value
T