pub struct AtomicPtr<T>(_);
Expand description
Mock implementation of std::sync::atomic::AtomicPtr
.
Implementations
sourceimpl<T> AtomicPtr<T>
impl<T> AtomicPtr<T>
sourcepub fn swap(&self, val: *mut T, order: Ordering) -> *mut T
pub fn swap(&self, val: *mut T, order: Ordering) -> *mut T
Stores a value into the pointer, returning the previous value.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for AtomicPtr<T>
impl<T> !Send for AtomicPtr<T>
impl<T> !Sync for AtomicPtr<T>
impl<T> Unpin for AtomicPtr<T>
impl<T> UnwindSafe for AtomicPtr<T>where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more