pub(crate) struct SendSyncPtr(NonNull<c_void>);Expand description
Wrapper type to only mark a raw pointer Send + Sync without having to
mark the entire Allocation as such, instead relying on the compiler to
auto-implement this or fail if fields are added that violate this constraint
Tuple Fields§
§0: NonNull<c_void>Trait Implementations§
Source§impl Clone for SendSyncPtr
impl Clone for SendSyncPtr
Source§fn clone(&self) -> SendSyncPtr
fn clone(&self) -> SendSyncPtr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SendSyncPtr
impl Debug for SendSyncPtr
impl Copy for SendSyncPtr
impl Send for SendSyncPtr
impl Sync for SendSyncPtr
Auto Trait Implementations§
impl Freeze for SendSyncPtr
impl RefUnwindSafe for SendSyncPtr
impl Unpin for SendSyncPtr
impl UnsafeUnpin for SendSyncPtr
impl UnwindSafe for SendSyncPtr
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