pub fn swap(&self, mut value: T) -> T {
        loop {
            match self.try_swap(value) {
                Ok(val) => return val,
                Err(val) => {
                    value = val;
                    spin_loop();
                }
            }
        }
    }
/// Swap the value inside cell.
///
/// Returns previous value from cell.
///
/// AtomicCell does not use atomic load/store/cas on contained data so that it can hold structs
/// of arbitrary size. This method tries to swap value in busy loop until success.
Swap the value inside cell.
Returns previous value from cell.

AtomicCell does not use atomic load/store/cas on contained data so that it can hold structs
of arbitrary size. This method tries to swap value in busy loop until success.
Swap the value inside cell . Returns previous value from cell . AtomicCell does not use atomic load / store / cas on contained data so that it can hold structs of arbitrary size . This method tries to swap value in busy loop until success .
pub fn swap(&self, mut value: T) -> T {
        loop {
            match self.try_swap(value) {
                Ok(val) => return val,
                Err(val) => {
                    value = val;
                    spin_loop();
                }
            }
        }
    }
pub fn swap ( & self , mut value : T ) -> T { loop { match self . try_swap ( value ) { Ok ( val ) => return val , Err ( val ) => { value = val ; spin_loop ( ) ; } } } }
Swap the value inside cell.
Swap the value inside cell .
&self
value
T
&self
value
T