Trait atomig::impls::PrimitiveAtom [−][src]
Expand description
Primitive types that can directly be used in an atomic way.
This trait is implemented exactly for every type that has a corresponding
atomic type in std::sync::atomic. You cannot implement this trait for
your own types; see Atom instead. This trait’s items are not part of
the public API – see the module docs.
Implementations on Foreign Types
fn compare_exchange(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>fn compare_exchange_weak(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>type Impl = AtomicBoolfn compare_exchange(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>fn compare_exchange_weak(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>fn compare_exchange(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>fn compare_exchange_weak(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>fn compare_exchange(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>fn compare_exchange_weak(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>fn compare_exchange(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>fn compare_exchange_weak(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>fn compare_exchange(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>fn compare_exchange_weak(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>fn compare_exchange(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>fn compare_exchange_weak(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>fn compare_exchange(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>fn compare_exchange_weak(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>fn compare_exchange(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>fn compare_exchange_weak(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>fn compare_exchange(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>fn compare_exchange_weak(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>type Impl = AtomicUsizefn compare_exchange(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>fn compare_exchange_weak(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>type Impl = AtomicIsizefn compare_exchange(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>fn compare_exchange_weak(
imp: &Self::Impl,
current: Self,
new: Self,
success: Ordering,
failure: Ordering
) -> Result<Self, Self>