pub fn new(data: T) -> CausalCell<T> {
        let v = rt::execution(|execution| execution.threads.active().causality.clone());

        CausalCell {
            data: UnsafeCell::new(data),
            immut_access_version: RefCell::new(v.clone()),
            mut_access_version: RefCell::new(v),
        }
    }
/// Construct a new instance of `CausalCell` which will wrap the specified
/// value.
Construct a new instance of `CausalCell` which will wrap the specified
value.
Construct a new instance of ` CausalCell ` which will wrap the specified value .
pub fn new(data: T) -> CausalCell<T> {
        let v = rt::execution(|execution| execution.threads.active().causality.clone());
        CausalCell {
            data: UnsafeCell::new(data),
            immut_access_version: RefCell::new(v.clone()),
            mut_access_version: RefCell::new(v),
        }
    }
pub fn new ( data : T ) -> CausalCell < T > { let v = rt :: execution ( | execution | execution . threads . active ( ) . causality . clone ( ) ) ; CausalCell { data : UnsafeCell :: new ( data ) , immut_access_version : RefCell :: new ( v . clone ( ) ) , mut_access_version : RefCell :: new ( v ) , } }
Construct a new instance of `CausalCell` which will wrap the specified
value.
Construct a new instance of ` CausalCell ` which will wrap the specified value .
data
T
data
T