pub trait AsPtr: Atomic {
// Required method
fn as_ptr(&self) -> *mut Self::Type;
}Expand description
Returns a mutable pointer to the underlying type.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl AsPtr for AtomicBool
Available on crate features atomic_as_ptr or since_1_70_0 only.
impl AsPtr for AtomicBool
Available on crate features
atomic_as_ptr or since_1_70_0 only.Source§impl AsPtr for AtomicIsize
Available on crate features atomic_as_ptr or since_1_70_0 only.
impl AsPtr for AtomicIsize
Available on crate features
atomic_as_ptr or since_1_70_0 only.Source§impl AsPtr for AtomicUsize
Available on crate features atomic_as_ptr or since_1_70_0 only.
impl AsPtr for AtomicUsize
Available on crate features
atomic_as_ptr or since_1_70_0 only.Source§impl<T> AsPtr for AtomicPtr<T>
Available on crate features atomic_as_ptr or since_1_70_0 only.
impl<T> AsPtr for AtomicPtr<T>
Available on crate features
atomic_as_ptr or since_1_70_0 only.