pub struct Local { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Manager for &Local
impl Manager for &Local
type Dealloc = &Local
unsafe fn alloc(self, block_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>
Auto Trait Implementations§
impl !Freeze for Local
impl !RefUnwindSafe for Local
impl !Sync for Local
impl Send for Local
impl Unpin for Local
impl UnsafeUnpin for Local
impl UnwindSafe for Local
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