pub struct HeapPrealloc<'a, T: 'a> { /* private fields */ }
Implementations§
source§impl<'a, T: Clone + 'a> HeapPrealloc<'a, T>
impl<'a, T: Clone + 'a> HeapPrealloc<'a, T>
pub fn new_allocator( freelist_size: usize, memory_pool: &'a mut Box<[T]>, initializer: fn(_: &mut [T]), ) -> StackAllocator<'a, T, HeapPrealloc<'a, T>>
Trait Implementations§
source§impl<'a, T: 'a> Default for HeapPrealloc<'a, T>
impl<'a, T: 'a> Default for HeapPrealloc<'a, T>
source§impl<'a, T: 'a> Index<usize> for HeapPrealloc<'a, T>
impl<'a, T: 'a> Index<usize> for HeapPrealloc<'a, T>
source§impl<'a, T: 'a> IndexMut<usize> for HeapPrealloc<'a, T>
impl<'a, T: 'a> IndexMut<usize> for HeapPrealloc<'a, T>
source§impl<'a, T: 'a> SliceWrapper<&'a mut [T]> for HeapPrealloc<'a, T>
impl<'a, T: 'a> SliceWrapper<&'a mut [T]> for HeapPrealloc<'a, T>
source§impl<'a, T: 'a> SliceWrapperMut<&'a mut [T]> for HeapPrealloc<'a, T>
impl<'a, T: 'a> SliceWrapperMut<&'a mut [T]> for HeapPrealloc<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for HeapPrealloc<'a, T>
impl<'a, T> RefUnwindSafe for HeapPrealloc<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for HeapPrealloc<'a, T>where
T: Send,
impl<'a, T> Sync for HeapPrealloc<'a, T>where
T: Sync,
impl<'a, T> Unpin for HeapPrealloc<'a, T>
impl<'a, T> !UnwindSafe for HeapPrealloc<'a, T>
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