Struct pmem::ptr::PmemConstPtr
[−]
[src]
pub struct PmemConstPtr<T: ?Sized> { // some fields omitted }
Direct *const 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> PmemConstPtr<T>
[src]
fn is_null(&self) -> bool
unsafe fn as_mut(&self) -> PmemMutPtr<T>
impl<T> PmemConstPtr<T>
[src]
fn null() -> Self
unsafe fn direct(&self) -> *const T
fn as_virtual(self) -> PmemConstVirtualPtr<T>
unsafe fn offset(&self, count: isize) -> Self
unsafe fn as_type<U>(&self) -> PmemConstPtr<U>
Trait Implementations
impl<T: Clone + ?Sized> Clone for PmemConstPtr<T>
[src]
fn clone(&self) -> PmemConstPtr<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