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