[−][src]Struct atomicfloat::AtomicF64
Implementations
impl AtomicF64
[src]
pub fn new(x: f64) -> Self
[src]
FIXME the constructor should be const, but cannot be made const until
f64::to_bits
is made const.
pub fn load(&self, order: Ordering) -> f64
[src]
pub fn store(&self, val: f64, order: Ordering)
[src]
pub fn into_inner(self) -> f64
[src]
pub fn fetch_add(&self, val: f64) -> f64
[src]
Adds to the current value, returning the previous value. This operation
is always Ordering::Relaxed
, and thus cannot be used to protect
other memory or coordinate between threads.
pub fn fetch_sub(&self, val: f64) -> f64
[src]
Subtracts from the current value, returning the previous value. This
operation is always Ordering::Relaxed
, and thus cannot be used to
protect other memory or coordinate between threads.
pub fn compare_exchange_weak(
&self,
current: f64,
new: f64,
success: Ordering,
failure: Ordering
) -> Result<f64, f64>
[src]
&self,
current: f64,
new: f64,
success: Ordering,
failure: Ordering
) -> Result<f64, f64>
Stores a value if the current value is the same as the current
argument. See std::sync::atomic::AtomicU64::compare_exchange_weak for
details.
Auto Trait Implementations
impl RefUnwindSafe for AtomicF64
impl Send for AtomicF64
impl Sync for AtomicF64
impl Unpin for AtomicF64
impl UnwindSafe for AtomicF64
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,