Struct scoped_allocator::Allocated [] [src]

pub struct Allocated<'a, T: 'a + ?Sized, A: 'a + Allocator> { /* fields omitted */ }

An item allocated by a custom allocator.

Methods

impl<'a, A: Allocator> Allocated<'a, Any, A>
[src]

Attempts to downcast this Allocated to a concrete type.

Trait Implementations

impl<'a, T: ?Sized, A: Allocator> Deref for Allocated<'a, T, A>
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<'a, T: ?Sized, A: Allocator> DerefMut for Allocated<'a, T, A>
[src]

The method called to mutably dereference a value

impl<'a, T: ?Sized + Unsize<U>, U: ?Sized, A: Allocator> CoerceUnsized<Allocated<'a, U, A>> for Allocated<'a, T, A>
[src]

impl<'a, T: ?Sized, A: Allocator> Borrow<T> for Allocated<'a, T, A>
[src]

Immutably borrows from an owned value. Read more

impl<'a, T: ?Sized, A: Allocator> BorrowMut<T> for Allocated<'a, T, A>
[src]

Mutably borrows from an owned value. Read more

impl<'a, T: ?Sized, A: Allocator> Drop for Allocated<'a, T, A>
[src]

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