Skip to main content

IntoAtomicInteger

Trait IntoAtomicInteger 

Source
pub trait IntoAtomicInteger:
    IntoAtomicNumber<AN = Self::AI>
    + PrimitiveInteger
    + FromPrimitive {
    type AI: AtomicInteger<Self>;

    // Provided method
    fn into_atomic_integer(self) -> impl AtomicInteger<Self> { ... }
}

Required Associated Types§

Source

type AI: AtomicInteger<Self>

Provided Methods§

Source

fn into_atomic_integer(self) -> impl AtomicInteger<Self>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T, A> IntoAtomicInteger for T
where T: IntoAtomicNumber<AN = A> + PrimitiveInteger + FromPrimitive, A: AtomicInteger<Self>,