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§

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.

Object Safety§

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§