Skip to main content

UseUpdateToAdd

Trait UseUpdateToAdd 

Source
pub trait UseUpdateToAdd {
    type Type;

    // Required method
    fn fetch_add_via_update(
        &self,
        val: Self::Type,
        order: Ordering,
    ) -> Self::Type;
}

Required Associated Types§

Required Methods§

Source

fn fetch_add_via_update(&self, val: Self::Type, order: Ordering) -> Self::Type

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> UseUpdateToAdd for AtomicNumber<T>
where T: PrimitiveAtomicFloat + FromPrimitive,

Source§

type Type = T