pub struct GlobalAllocation<T> { /* private fields */ }Expand description
Owned global-allocator region returned by
GlobalAllocator::allocate. Releases via dealloc on drop.
Trait Implementations§
Source§impl<T> Allocation<T> for GlobalAllocation<T>
impl<T> Allocation<T> for GlobalAllocation<T>
Source§fn ptr(&self) -> *mut UnsafeCell<MaybeUninit<T>>
fn ptr(&self) -> *mut UnsafeCell<MaybeUninit<T>>
Base pointer of the allocated region. Points to
items contiguous,
aligned cells (see Allocator::allocate).Source§impl<T> Drop for GlobalAllocation<T>
impl<T> Drop for GlobalAllocation<T>
impl<T> Send for GlobalAllocation<T>where
T: Send,
Auto Trait Implementations§
impl<T> !RefUnwindSafe for GlobalAllocation<T>
impl<T> !Sync for GlobalAllocation<T>
impl<T> !UnwindSafe for GlobalAllocation<T>
impl<T> Freeze for GlobalAllocation<T>
impl<T> Unpin for GlobalAllocation<T>
impl<T> UnsafeUnpin for GlobalAllocation<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more