pub struct AtomicU64(/* private fields */);Implementations§
Source§impl AtomicU64
impl AtomicU64
pub fn new(v: u64) -> Self
pub fn with_mut<R>(&mut self, f: impl FnOnce(&mut u64) -> R) -> R
pub fn load(&self, order: Ordering) -> u64
pub fn store(&self, val: u64, order: Ordering)
pub fn fetch_add(&self, val: u64, order: Ordering) -> u64
pub fn fetch_sub(&self, val: u64, order: Ordering) -> u64
pub fn fetch_or(&self, val: u64, order: Ordering) -> u64
Auto Trait Implementations§
impl !Freeze for AtomicU64
impl RefUnwindSafe for AtomicU64
impl Send for AtomicU64
impl Sync for AtomicU64
impl Unpin for AtomicU64
impl UnsafeUnpin 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