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