Struct divans::alloc_util::CachedAllocator [−][src]
pub struct CachedAllocator<'a, T: 'a, AllocT: 'a + Allocator<T>, ShouldClear: ShouldClearCacheOnAlloc<T>> { /* fields omitted */ }
Trait Implementations
impl<'a, T: 'a, AllocT: 'a + Allocator<T>, ShouldClear: ShouldClearCacheOnAlloc<T>> Allocator<T> for CachedAllocator<'a, T, AllocT, ShouldClear>
[src]
impl<'a, T: 'a, AllocT: 'a + Allocator<T>, ShouldClear: ShouldClearCacheOnAlloc<T>> Allocator<T> for CachedAllocator<'a, T, AllocT, ShouldClear>
type AllocatedMemory = AllocatedMemoryPrefix<T, AllocT>
fn alloc_cell(&mut self, s: usize) -> AllocatedMemoryPrefix<T, AllocT>
[src]
fn alloc_cell(&mut self, s: usize) -> AllocatedMemoryPrefix<T, AllocT>
fn free_cell(&mut self, cell: AllocatedMemoryPrefix<T, AllocT>)
[src]
fn free_cell(&mut self, cell: AllocatedMemoryPrefix<T, AllocT>)
Auto Trait Implementations
impl<'a, T, AllocT, ShouldClear> Send for CachedAllocator<'a, T, AllocT, ShouldClear> where
AllocT: Send,
ShouldClear: Send,
<AllocT as Allocator<T>>::AllocatedMemory: Send,
impl<'a, T, AllocT, ShouldClear> Send for CachedAllocator<'a, T, AllocT, ShouldClear> where
AllocT: Send,
ShouldClear: Send,
<AllocT as Allocator<T>>::AllocatedMemory: Send,
impl<'a, T, AllocT, ShouldClear> Sync for CachedAllocator<'a, T, AllocT, ShouldClear> where
AllocT: Sync,
ShouldClear: Sync,
<AllocT as Allocator<T>>::AllocatedMemory: Sync,
impl<'a, T, AllocT, ShouldClear> Sync for CachedAllocator<'a, T, AllocT, ShouldClear> where
AllocT: Sync,
ShouldClear: Sync,
<AllocT as Allocator<T>>::AllocatedMemory: Sync,