Struct pmem::ptr::PmemMutPtr
[−]
[src]
pub struct PmemMutPtr<T: ?Sized> { // some fields omitted }
Direct *mut T
pointer to a pmem location
Safety
This pointer is not safe to store directly on pmem.
You can get a safe virtual pointer using as_virtual()
.
Methods
impl<T: ?Sized> PmemMutPtr<T>
[src]
fn is_null(&self) -> bool
unsafe fn as_const(&self) -> PmemConstPtr<T>
impl<T> PmemMutPtr<T>
[src]
fn null() -> Self
unsafe fn direct(&self) -> *mut T
fn as_virtual(self) -> PmemMutVirtualPtr<T>
unsafe fn offset(&self, count: isize) -> Self
unsafe fn as_type<U>(&self) -> PmemMutPtr<U>
Trait Implementations
impl<T: Clone + ?Sized> Clone for PmemMutPtr<T>
[src]
fn clone(&self) -> PmemMutPtr<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more