#[repr(u32)]pub enum UserAtomicU32Op {
Set = 0,
Add = 1,
Or = 2,
AndNot = 3,
Xor = 4,
}Available on crate feature
uspace only.Expand description
Atomic operation supported by user_atomic_u32.
Variants§
Set = 0
Replaces the word with the supplied argument.
Add = 1
Adds the supplied argument with wrapping semantics.
Or = 2
ORs the word with the supplied argument.
AndNot = 3
ANDs the word with the inverse of the supplied argument.
Xor = 4
XORs the word with the supplied argument.
Trait Implementations§
Source§impl Clone for UserAtomicU32Op
impl Clone for UserAtomicU32Op
Source§fn clone(&self) -> UserAtomicU32Op
fn clone(&self) -> UserAtomicU32Op
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UserAtomicU32Op
Source§impl Debug for UserAtomicU32Op
impl Debug for UserAtomicU32Op
impl Eq for UserAtomicU32Op
Source§impl PartialEq for UserAtomicU32Op
impl PartialEq for UserAtomicU32Op
impl StructuralPartialEq for UserAtomicU32Op
Auto Trait Implementations§
impl Freeze for UserAtomicU32Op
impl RefUnwindSafe for UserAtomicU32Op
impl Send for UserAtomicU32Op
impl Sync for UserAtomicU32Op
impl Unpin for UserAtomicU32Op
impl UnsafeUnpin for UserAtomicU32Op
impl UnwindSafe for UserAtomicU32Op
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