Trait CaS

Source
pub trait CaS<T: RefCnt>: CaS<T> { }
Expand description

An extension of the Strategy, allowing for compare and swap operation.

The compare and swap operation is “advanced” and not all strategies need to support them. Therefore, it is a separate trait.

Similarly, it is not yet made publicly usable or implementable and works only as a bound.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: RefCnt, S: CaS<T>> CaS<T> for S