pub unsafe trait AtomicAdd<Rhs = Self>: AtomicType {
// Required method
fn rhs_into_delta(rhs: Rhs) -> <Self::Repr as AtomicImpl>::Delta;
}Expand description
Types that support atomic add operations.
§Safety
wrapping_add any value of type Self::Repr::Delta obtained by Self::rhs_into_delta() to
any value of type Self::Repr obtained through transmuting a value of type Self to must
yield a value with a bit pattern also valid for Self.
Required Methods§
sourcefn rhs_into_delta(rhs: Rhs) -> <Self::Repr as AtomicImpl>::Delta
fn rhs_into_delta(rhs: Rhs) -> <Self::Repr as AtomicImpl>::Delta
Converts Rhs into the Delta type of the atomic implementation.
Object Safety§
This trait is not object safe.