/// Create a new shared object.
Create a new shared object.
Create a new shared object .
pub fn new(obj: T) -> Shared<T> {
        Shared {
            object: Arc::new(Mutex::new(obj))
        }
    }
pub fn new ( obj : T ) -> Shared < T > { Shared { object : Arc :: new ( Mutex :: new ( obj ) ) } }
Create a new shared object.
Create a new shared object .
obj
T