FromMutPtr

Trait 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§

Source

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.

Source

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.

Implementations on Foreign Types§

Source§

impl<T> FromMutPtr<T> for *mut T

Source§

unsafe fn as_sync_mut(&self) -> SyncMutPtr<T>

Source§

unsafe fn as_send_mut(&self) -> SendMutPtr<T>

Implementors§