Struct outsource_heap::Global
source · [−]pub struct Global<T> { /* private fields */ }Implementations
Trait Implementations
sourceimpl<T: GlobalAlloc> GlobalAlloc for Global<T>
impl<T: GlobalAlloc> GlobalAlloc for Global<T>
sourceunsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocate memory as described by the given layout. Read more
sourceunsafe fn dealloc(&self, ptr: *mut u8, layout: Layout)
unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout)
Deallocate the block of memory at the given ptr pointer with the given layout. Read more
impl<T> Sync for Global<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Global<T> where
T: RefUnwindSafe,
impl<T> !Send for Global<T>
impl<T> Unpin for Global<T> where
T: Unpin,
impl<T> UnwindSafe for Global<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more