pub fn new(data: T) -> Self {
        let atomic_counter = Box::new(MlspInner::new(data));
        let atomic_counter = Box::into_raw(atomic_counter);
        let atomic_counter = NonNull::new(atomic_counter).unwrap();

        Mlsp {
            local_count: new_local_counter(),
            inner_ptr: atomic_counter,
        }
    }
/// Creates a new Mlsp wrapping the given value.
///
/// Initializes the global and local counts to 1.
Creates a new Mlsp wrapping the given value.
Initializes the global and local counts to 1.
Creates a new Mlsp wrapping the given value . Initializes the global and local counts to 1 .
pub fn new(data: T) -> Self {
        let atomic_counter = Box::new(MlspInner::new(data));
        let atomic_counter = Box::into_raw(atomic_counter);
        let atomic_counter = NonNull::new(atomic_counter).unwrap();
        Mlsp {
            local_count: new_local_counter(),
            inner_ptr: atomic_counter,
        }
    }
pub fn new ( data : T ) -> Self { let atomic_counter = Box :: new ( MlspInner :: new ( data ) ) ; let atomic_counter = Box :: into_raw ( atomic_counter ) ; let atomic_counter = NonNull :: new ( atomic_counter ) . unwrap ( ) ; Mlsp { local_count : new_local_counter ( ) , inner_ptr : atomic_counter , } }
Creates a new Mlsp wrapping the given value.
Creates a new Mlsp wrapping the given value .
data
T
data
T