Struct gpu_allocator::metal::Allocator
source · pub struct Allocator { /* private fields */ }
Implementations§
source§impl Allocator
impl Allocator
pub fn new(desc: &AllocatorCreateDesc) -> Result<Self>
pub fn allocate( &mut self, desc: &AllocationCreateDesc<'_>, ) -> Result<Allocation>
pub fn free(&mut self, allocation: &Allocation) -> Result<()>
pub fn get_heaps(&self) -> Vec<&HeapRef>
pub fn generate_report(&self) -> AllocatorReport
Auto Trait Implementations§
impl Freeze for Allocator
impl !RefUnwindSafe for Allocator
impl Send for Allocator
impl Sync for Allocator
impl Unpin for Allocator
impl !UnwindSafe for Allocator
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