Skip to main content

UserSafeCopyDestination

Trait UserSafeCopyDestination 

Source
pub unsafe trait UserSafeCopyDestination<T: ?Sized> {
    // Required method
    fn as_mut_ptr(&mut self) -> *mut T;
}
🔬This is a nightly-only experimental API. (sgx_platform #56975)
Available on Fortanix and SGX only.
Expand description

A type which can a destination for safely copying from userspace.

§Safety

Requires that T and Self have identical layouts.

Required Methods§

Source

fn as_mut_ptr(&mut self) -> *mut T

🔬This is a nightly-only experimental API. (sgx_platform #56975)

Returns a pointer for writing to the value.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§