FromMutPtr

Trait FromMutPtr 

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

Source

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

Makes self Send+Sync

Source

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.

Implementations on Foreign Types§

Source§

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

Implementors§