pub fn apply<F, R>(&self, mut func: F) -> R where F: FnOnce(&mut T) -> R, T: Copy {
        loop {
            match self.try_apply(func) {
                Ok(res) => return res,
                Err(f) => {
                    func = f;
                    spin_loop();
                }
            }
        }
    }
/// Perform action on value inside cell, possibly mutating it.
///
/// Returns value returned from executed function.
///
/// `T` is required to be copy in case if given function panics. When this occurs, the value is
/// restored to state from before applying the function and panic is propagated.
///
/// AtomicCell does not use atomic load/store/cas on contained data so that it can hold structs
/// of arbitrary size. This method tries to apply function in busy loop until success.
Perform action on value inside cell, possibly mutating it.
Returns value returned from executed function.

`T` is required to be copy in case if given function panics. When this occurs, the value is
restored to state from before applying the function and panic is propagated.

AtomicCell does not use atomic load/store/cas on contained data so that it can hold structs
of arbitrary size. This method tries to apply function in busy loop until success.
Perform action on value inside cell possibly mutating it . Returns value returned from executed function . ` T ` is required to be copy in case if given function panics . When this occurs the value is restored to state from before applying the function and panic is propagated . AtomicCell does not use atomic load / store / cas on contained data so that it can hold structs of arbitrary size . This method tries to apply function in busy loop until success .
pub fn apply<F, R>(&self, mut func: F) -> R where F: FnOnce(&mut T) -> R, T: Copy {
        loop {
            match self.try_apply(func) {
                Ok(res) => return res,
                Err(f) => {
                    func = f;
                    spin_loop();
                }
            }
        }
    }
pub fn apply < F , R > ( & self , mut func : F ) -> R where F : FnOnce ( & mut T ) -> R , T : Copy { loop { match self . try_apply ( func ) { Ok ( res ) => return res , Err ( f ) => { func = f ; spin_loop ( ) ; } } } }
Perform action on value inside cell, possibly mutating it.
Perform action on value inside cell possibly mutating it .
&self
func
F
&self
func
F