pub struct AtomicPtr<'a, T> { /* private fields */ }
Implementations§
Source§impl<T: Atomic> AtomicPtr<'_, T>
impl<T: Atomic> AtomicPtr<'_, T>
pub fn load(self, order: Ordering) -> T
pub fn store(self, val: T, order: Ordering)
pub fn swap(self, val: T, order: Ordering) -> T
pub fn compare_exchange( self, current: T, new: T, success: Ordering, failure: Ordering, ) -> Result<T, T>
pub fn compare_exchange_weak( self, current: T, new: T, success: Ordering, failure: Ordering, ) -> Result<T, T>
pub fn fetch_add(self, val: T, order: Ordering) -> T
pub fn fetch_sub(self, val: T, order: Ordering) -> T
pub fn fetch_and(self, val: T, order: Ordering) -> T
pub fn fetch_nand(self, val: T, order: Ordering) -> T
pub fn fetch_or(self, val: T, order: Ordering) -> T
pub fn fetch_xor(self, val: T, order: Ordering) -> T
pub fn fetch_update<F>(
self,
set_order: Ordering,
fetch_order: Ordering,
f: F,
) -> Result<T, T>where
F: FnMut(T) -> Option<T>,
pub fn fetch_max(self, val: T, order: Ordering) -> T
pub fn fetch_min(self, val: T, order: Ordering) -> T
Trait Implementations§
impl<T> Copy for AtomicPtr<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for AtomicPtr<'a, T>
impl<'a, T> RefUnwindSafe for AtomicPtr<'a, T>where
T: RefUnwindSafe,
impl<'a, T> !Send for AtomicPtr<'a, T>
impl<'a, T> !Sync for AtomicPtr<'a, T>
impl<'a, T> Unpin for AtomicPtr<'a, T>
impl<'a, T> UnwindSafe for AtomicPtr<'a, T>where
T: RefUnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)