[][src]Struct atomicfloat::AtomicF64

pub struct 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]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.