[−][src]Trait atomig::impls::AtomicIntegerImpl
Atomic types from std::sync::atomic
which support integer operations.
Required methods
fn fetch_add(&self, val: Self::Inner, order: Ordering) -> Self::Inner
fn fetch_sub(&self, val: Self::Inner, order: Ordering) -> Self::Inner
fn fetch_max(&self, val: Self::Inner, order: Ordering) -> Self::Inner
fn fetch_min(&self, val: Self::Inner, order: Ordering) -> Self::Inner
fn fetch_update<F>(
&self,
f: F,
fetch_order: Ordering,
set_order: Ordering
) -> Result<Self::Inner, Self::Inner> where
F: FnMut(Self::Inner) -> Option<Self::Inner>,
&self,
f: F,
fetch_order: Ordering,
set_order: Ordering
) -> Result<Self::Inner, Self::Inner> where
F: FnMut(Self::Inner) -> Option<Self::Inner>,
Implementations on Foreign Types
impl AtomicIntegerImpl for AtomicU8
[src]
fn fetch_add(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
fn fetch_sub(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
fn fetch_max(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
fn fetch_min(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
fn fetch_update<F>(
&self,
f: F,
fetch_order: Ordering,
set_order: Ordering
) -> Result<Self::Inner, Self::Inner> where
F: FnMut(Self::Inner) -> Option<Self::Inner>,
[src]
&self,
f: F,
fetch_order: Ordering,
set_order: Ordering
) -> Result<Self::Inner, Self::Inner> where
F: FnMut(Self::Inner) -> Option<Self::Inner>,
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
impl AtomicIntegerImpl for AtomicI8
[src]
fn fetch_add(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
fn fetch_sub(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
fn fetch_max(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
fn fetch_min(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
fn fetch_update<F>(
&self,
f: F,
fetch_order: Ordering,
set_order: Ordering
) -> Result<Self::Inner, Self::Inner> where
F: FnMut(Self::Inner) -> Option<Self::Inner>,
[src]
&self,
f: F,
fetch_order: Ordering,
set_order: Ordering
) -> Result<Self::Inner, Self::Inner> where
F: FnMut(Self::Inner) -> Option<Self::Inner>,
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
impl AtomicIntegerImpl for AtomicU16
[src]
fn fetch_add(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
fn fetch_sub(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
fn fetch_max(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
fn fetch_min(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
fn fetch_update<F>(
&self,
f: F,
fetch_order: Ordering,
set_order: Ordering
) -> Result<Self::Inner, Self::Inner> where
F: FnMut(Self::Inner) -> Option<Self::Inner>,
[src]
&self,
f: F,
fetch_order: Ordering,
set_order: Ordering
) -> Result<Self::Inner, Self::Inner> where
F: FnMut(Self::Inner) -> Option<Self::Inner>,
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
impl AtomicIntegerImpl for AtomicI16
[src]
fn fetch_add(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
fn fetch_sub(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
fn fetch_max(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
fn fetch_min(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
fn fetch_update<F>(
&self,
f: F,
fetch_order: Ordering,
set_order: Ordering
) -> Result<Self::Inner, Self::Inner> where
F: FnMut(Self::Inner) -> Option<Self::Inner>,
[src]
&self,
f: F,
fetch_order: Ordering,
set_order: Ordering
) -> Result<Self::Inner, Self::Inner> where
F: FnMut(Self::Inner) -> Option<Self::Inner>,
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
impl AtomicIntegerImpl for AtomicU32
[src]
fn fetch_add(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
fn fetch_sub(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
fn fetch_max(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
fn fetch_min(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
fn fetch_update<F>(
&self,
f: F,
fetch_order: Ordering,
set_order: Ordering
) -> Result<Self::Inner, Self::Inner> where
F: FnMut(Self::Inner) -> Option<Self::Inner>,
[src]
&self,
f: F,
fetch_order: Ordering,
set_order: Ordering
) -> Result<Self::Inner, Self::Inner> where
F: FnMut(Self::Inner) -> Option<Self::Inner>,
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
impl AtomicIntegerImpl for AtomicI32
[src]
fn fetch_add(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
fn fetch_sub(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
fn fetch_max(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
fn fetch_min(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
fn fetch_update<F>(
&self,
f: F,
fetch_order: Ordering,
set_order: Ordering
) -> Result<Self::Inner, Self::Inner> where
F: FnMut(Self::Inner) -> Option<Self::Inner>,
[src]
&self,
f: F,
fetch_order: Ordering,
set_order: Ordering
) -> Result<Self::Inner, Self::Inner> where
F: FnMut(Self::Inner) -> Option<Self::Inner>,
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
impl AtomicIntegerImpl for AtomicU64
[src]
fn fetch_add(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
fn fetch_sub(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
fn fetch_max(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
fn fetch_min(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
fn fetch_update<F>(
&self,
f: F,
fetch_order: Ordering,
set_order: Ordering
) -> Result<Self::Inner, Self::Inner> where
F: FnMut(Self::Inner) -> Option<Self::Inner>,
[src]
&self,
f: F,
fetch_order: Ordering,
set_order: Ordering
) -> Result<Self::Inner, Self::Inner> where
F: FnMut(Self::Inner) -> Option<Self::Inner>,
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
impl AtomicIntegerImpl for AtomicI64
[src]
fn fetch_add(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
fn fetch_sub(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
fn fetch_max(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
fn fetch_min(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
fn fetch_update<F>(
&self,
f: F,
fetch_order: Ordering,
set_order: Ordering
) -> Result<Self::Inner, Self::Inner> where
F: FnMut(Self::Inner) -> Option<Self::Inner>,
[src]
&self,
f: F,
fetch_order: Ordering,
set_order: Ordering
) -> Result<Self::Inner, Self::Inner> where
F: FnMut(Self::Inner) -> Option<Self::Inner>,
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
impl AtomicIntegerImpl for AtomicUsize
[src]
fn fetch_add(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
fn fetch_sub(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
fn fetch_max(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
fn fetch_min(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
fn fetch_update<F>(
&self,
f: F,
fetch_order: Ordering,
set_order: Ordering
) -> Result<Self::Inner, Self::Inner> where
F: FnMut(Self::Inner) -> Option<Self::Inner>,
[src]
&self,
f: F,
fetch_order: Ordering,
set_order: Ordering
) -> Result<Self::Inner, Self::Inner> where
F: FnMut(Self::Inner) -> Option<Self::Inner>,
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
impl AtomicIntegerImpl for AtomicIsize
[src]
fn fetch_add(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
fn fetch_sub(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
fn fetch_max(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
fn fetch_min(&self, val: Self::Inner, order: Ordering) -> Self::Inner
[src]
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.
fn fetch_update<F>(
&self,
f: F,
fetch_order: Ordering,
set_order: Ordering
) -> Result<Self::Inner, Self::Inner> where
F: FnMut(Self::Inner) -> Option<Self::Inner>,
[src]
&self,
f: F,
fetch_order: Ordering,
set_order: Ordering
) -> Result<Self::Inner, Self::Inner> where
F: FnMut(Self::Inner) -> Option<Self::Inner>,
This method is currently unstable and thus only available when
compiling this crate with the "nightly"
feature.