pub struct Global();
Trait Implementations§
source§impl Manager for Global
impl Manager for Global
type Dealloc = Global
unsafe fn alloc(self, layout: Layout) -> *mut u8
source§fn new<N: Constructor>(
self,
new_in_place: N
) -> MutRef<N::Result, Self::Dealloc>
fn new<N: Constructor>( self, new_in_place: N ) -> MutRef<N::Result, Self::Dealloc>
Allocate a block of memory for a new T object and initialize the object with the
new_in_place
.fn fixed_new<T>(self, value: T) -> MutRef<Fixed<T>, Self::Dealloc>
fn flexible_array_new<I, E: ExactSizeIterator<Item = I>>( self, items: impl IntoIterator<IntoIter = E> ) -> MutRef<FlexibleArray<I, usize>, Self::Dealloc>
impl Copy for Global
Auto Trait Implementations§
impl RefUnwindSafe for Global
impl Send for Global
impl Sync for Global
impl Unpin for Global
impl UnwindSafe for Global
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