[−][src]Struct maybe_atomic::MaybeAtomicU64
An atomic structure that wraps either an AtomicU64 or a u64, depending on if atomics are available.
Implementations
impl MaybeAtomicU64
[src]
pub fn new(inner: u64) -> Self
[src]
Creates a new instance of MaybeAtomicU64.
pub fn get_mut(&mut self) -> &mut u64
[src]
Get a mutable reference to the value contained within.
pub fn load(&self, order: Ordering) -> u64
[src]
Copy the value out of this container using the specified ordering.
pub fn store(&self, val: u64, order: Ordering)
[src]
Store a value in this container.
pub fn swap(&self, val: u64, order: Ordering) -> u64
[src]
Swap two values, returning the old value stored in this container.
Auto Trait Implementations
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>,