pub struct U64 { /* private fields */ }Expand description
A atomic unsigned integer.
Implementations§
Source§impl AtomicU64
impl AtomicU64
Sourcepub fn compare_and_swap(
&self,
current: u64,
new: u64,
ordering: Ordering,
) -> u64
pub fn compare_and_swap( &self, current: u64, new: u64, ordering: Ordering, ) -> u64
Get the value with the provided memory ordering.
Sourcepub fn inc_by_with_ordering(&self, delta: u64, ordering: Ordering)
pub fn inc_by_with_ordering(&self, delta: u64, ordering: Ordering)
Increment the value by a given amount with the provided memory ordering.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AtomicU64
impl RefUnwindSafe for AtomicU64
impl Send for AtomicU64
impl Sync for AtomicU64
impl Unpin for AtomicU64
impl UnwindSafe for AtomicU64
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more