pub fn split(&self) -> Self {
        Self {
            lock: self.lock.clone(),
        }
    }
/// Create's a new lock pointing to the same data.
/// Modifying the data in the new lock will result in
/// seeing the same change in the old lock.
/// ```
/// # use slock::*;
/// let lock = Slock::new(0i32);
/// let the_same_lock = lock.split();
/// ```
Create's a new lock pointing to the same data.
Modifying the data in the new lock will result in
seeing the same change in the old lock.
Create ' s a new lock pointing to the same data . Modifying the data in the new lock will result in seeing the same change in the old lock .
pub fn split(&self) -> Self {
        Self {
            lock: self.lock.clone(),
        }
    }
pub fn split ( & self ) -> Self { Self { lock : self . lock . clone ( ) , } }
Create's a new lock pointing to the same data.
Create ' s a new lock pointing to the same data .
&self
&self
use slock::*;
let lock = Slock::new(0i32);
let the_same_lock = lock.split();
```
let lock = Slock :: new ( 0i32 ) ; let the_same_lock = lock . split () ; ` ` `