pub struct SlabAllocator { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Debug for SlabAllocator
impl Debug for SlabAllocator
Source§impl GpuAllocator for SlabAllocator
impl GpuAllocator for SlabAllocator
fn allocate( &mut self, size: u64, region: MemoryRegion, mem_type: MemType, access: MemAccess, ) -> TptrResult<MemoryAllocation>
fn free(&mut self, allocation: &MemoryAllocation) -> TptrResult<()>
Source§fn free_handle(&mut self, _handle: u64) -> TptrResult<()>
fn free_handle(&mut self, _handle: u64) -> TptrResult<()>
Release the bookkeeping for an allocation by its handle alone, without
re-matching the device pointer (used when the real device pointer has
been substituted for the allocator’s fake address).
fn stats(&self) -> AllocatorStats
fn reset(&mut self) -> TptrResult<()>
Auto Trait Implementations§
impl !Freeze for SlabAllocator
impl RefUnwindSafe for SlabAllocator
impl Send for SlabAllocator
impl Sync for SlabAllocator
impl Unpin for SlabAllocator
impl UnsafeUnpin for SlabAllocator
impl UnwindSafe for SlabAllocator
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