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