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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)