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 Freeze for Global
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