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.
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.