Struct alloc_stdlib::heap_alloc::HeapPrealloc
source · [−]pub struct HeapPrealloc<'a, T: 'a> { /* private fields */ }
Implementations
sourceimpl<'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
sourceimpl<'a, T: 'a> Default for HeapPrealloc<'a, T>
impl<'a, T: 'a> Default for HeapPrealloc<'a, T>
sourceimpl<'a, T: 'a> Index<usize> for HeapPrealloc<'a, T>
impl<'a, T: 'a> Index<usize> for HeapPrealloc<'a, T>
sourceimpl<'a, T: 'a> IndexMut<usize> for HeapPrealloc<'a, T>
impl<'a, T: 'a> IndexMut<usize> for HeapPrealloc<'a, T>
sourceimpl<'a, T: 'a> SliceWrapper<&'a mut [T]> for HeapPrealloc<'a, T>
impl<'a, T: 'a> SliceWrapper<&'a mut [T]> for HeapPrealloc<'a, T>
sourceimpl<'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> 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more