Trait linux_io::ptr::ReprMut

source ·
pub unsafe trait ReprMut<T> {
    // Required method
    fn from_mut_ptr(ptr: *mut T) -> Self;
}
Expand description

Trait implemented by types that can represent writable userspace addresses.

Required Methods§

source

fn from_mut_ptr(ptr: *mut T) -> Self

Convert the given pointer to the implementing type, without losing any information that the kernel would need to treat the result as a userspace pointer to the same address.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> ReprMut<T> for *mut T

source§

fn from_mut_ptr(ptr: *mut T) -> Self

source§

impl<T> ReprMut<T> for u64

source§

fn from_mut_ptr(ptr: *mut T) -> Self

source§

impl<T> ReprMut<T> for usize

source§

fn from_mut_ptr(ptr: *mut T) -> Self

Implementors§