Struct allocators::Allocated
[−]
[src]
pub struct Allocated<'a, T: 'a + ?Sized, A: 'a + Allocator> { // some fields omitted }
An item allocated by a custom allocator.
Methods
impl<'a, A: Allocator> Allocated<'a, Any, A>
[src]
fn downcast<T: Any>(self) -> Result<Allocated<'a, T, A>, Allocated<'a, Any, A>>
Attempts to downcast this Allocated
to a concrete type.
Trait Implementations
impl<'a, T: ?Sized, A: Allocator> Deref for Allocated<'a, T, A>
[src]
type Target = T
The resulting type after dereferencing
fn deref(&self) -> &T
The method called to dereference a value
impl<'a, T: ?Sized, A: Allocator> DerefMut for Allocated<'a, T, A>
[src]
fn deref_mut(&mut self) -> &mut T
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]
impl<'a, T: ?Sized, A: Allocator> BorrowMut<T> for Allocated<'a, T, A>
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more