Struct aren_alloc::Pointer [] [src]

pub struct Pointer<'a, T: ?Sized> { /* fields omitted */ }

A pointer to T, when dropped, the underlying memory would be recycled by the allocator.

Methods

impl<'a, T: ?Sized> Pointer<'a, T>
[src]

Borrow ptr as a reference. This is an associated function so that T's methods won't be shadowed.

Borrow ptr as a mutable reference. This is an associated function so that T's methods won't be shadowed.

Trait Implementations

impl<'a, T: Clone + ?Sized> Clone for Pointer<'a, T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a, T: ?Sized, U: ?Sized> CoerceUnsized<Pointer<'a, T>> for Pointer<'a, U> where
    U: Unsize<T>,
    T: , 
[src]

impl<'a, T: ?Sized> Deref for Pointer<'a, T>
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<'a, T: ?Sized> DerefMut for Pointer<'a, T>
[src]

The method called to mutably dereference a value

impl<'a, T: ?Sized> Drop for Pointer<'a, T>
[src]

A method called when the value goes out of scope. Read more