pub struct AtomicConstPtr<T> { /* private fields */ }Expand description
Atomic storage for *const T. Used as Payload::UnderlyingAtomic for *const T.
Trait Implementations§
Source§impl<T> AtomicPrimitive for AtomicConstPtr<T>
impl<T> AtomicPrimitive for AtomicConstPtr<T>
Source§type InnerPrimitive = *const T
type InnerPrimitive = *const T
The primitive type that this atomic type is wrapping.
Source§fn new_default() -> Self
fn new_default() -> Self
Creates a new atomic wrapper with the default value of the primitive
type.
Source§impl<T: Debug> Debug for AtomicConstPtr<T>
impl<T: Debug> Debug for AtomicConstPtr<T>
Source§impl<T: Default> Default for AtomicConstPtr<T>
impl<T: Default> Default for AtomicConstPtr<T>
Source§fn default() -> AtomicConstPtr<T>
fn default() -> AtomicConstPtr<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> !Freeze for AtomicConstPtr<T>
impl<T> RefUnwindSafe for AtomicConstPtr<T>
impl<T> Send for AtomicConstPtr<T>
impl<T> Sync for AtomicConstPtr<T>
impl<T> Unpin for AtomicConstPtr<T>
impl<T> UnsafeUnpin for AtomicConstPtr<T>
impl<T> UnwindSafe for AtomicConstPtr<T>where
T: RefUnwindSafe,
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