Trait sync_ptr::FromMutPtr
source · pub trait FromMutPtr<T>: FromConstPtr<T> {
// Required methods
unsafe fn as_sync_mut(&self) -> SyncMutPtr<T>;
unsafe fn as_send_mut(&self) -> SendMutPtr<T>;
}Required Methods§
sourceunsafe fn as_sync_mut(&self) -> SyncMutPtr<T>
unsafe fn as_sync_mut(&self) -> SyncMutPtr<T>
Makes self Send+Sync
§Safety
self must be able to handle being sent to and used concurrently by other threads,
or special care must be taken when using the wrapped self to not use it
in any way in other threads.
sourceunsafe fn as_send_mut(&self) -> SendMutPtr<T>
unsafe fn as_send_mut(&self) -> SendMutPtr<T>
Makes self Send
§Safety
self must be able to handle being sent to other threads
or special care must be taken when using the wrapped self to not use it
in any way in other threads.
Object Safety§
This trait is not object safe.