Struct drop_ptr::Ptr
[−]
[src]
pub struct Ptr<A: ?Sized + DropPtr>(_);
Methods
impl<A: ?Sized + DropPtr> Ptr<A>
[src]
unsafe fn new(ptr: *mut A) -> Option<Self>
[src]
unsafe fn new_unchecked(ptr: *mut A) -> Self
[src]
Trait Implementations
impl<A: ?Sized + DropPtr> Drop for Ptr<A>
[src]
impl<A: ?Sized + DropPtr> Deref for Ptr<A>
[src]
type Target = A
The resulting type after dereferencing.
fn deref(&self) -> &A
[src]
Dereferences the value.