pub struct Cmpxchg {
pub memory: MemoryId,
pub width: AtomicWidth,
pub arg: MemArg,
}
Expand description
An atomic compare-and-exchange operation.
Fields§
§memory: MemoryId
The memory we’re modifying
width: AtomicWidth
The atomic operation being performed
arg: MemArg
The alignment and offset from the base address
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Cmpxchg
impl Send for Cmpxchg
impl Sync for Cmpxchg
impl Unpin for Cmpxchg
impl UnwindSafe for Cmpxchg
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