pub struct BuddyAllocator { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Debug for BuddyAllocator
impl Debug for BuddyAllocator
Source§impl GpuAllocator for BuddyAllocator
impl GpuAllocator for BuddyAllocator
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 BuddyAllocator
impl RefUnwindSafe for BuddyAllocator
impl Send for BuddyAllocator
impl Sync for BuddyAllocator
impl Unpin for BuddyAllocator
impl UnsafeUnpin for BuddyAllocator
impl UnwindSafe for BuddyAllocator
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