pub trait FromMutPtr<T>: FromConstPtr<T> {
// Required methods
fn as_sync_mut(&self) -> SyncMutPtr<T>;
fn as_send_mut(&self) -> SendMutPtr<T>;
}Expand description
Helper trait for every *mut T to add fn’s to wrap it into a Sync/Send wrapper.
This trait does not need to be implemented directly.
Required Methods§
Sourcefn as_sync_mut(&self) -> SyncMutPtr<T>
fn as_sync_mut(&self) -> SyncMutPtr<T>
Makes self Send+Sync
Sourcefn as_send_mut(&self) -> SendMutPtr<T>
fn as_send_mut(&self) -> SendMutPtr<T>
Makes self Send
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.