pub(crate) struct DedicatedBlockAllocator {
size: u64,
allocated: u64,
name: Option<String>,
}Fields§
§size: u64§allocated: u64§name: Option<String>Only used if [crate::AllocatorDebugSettings::store_stack_traces] is true
Implementations§
Trait Implementations§
Source§impl Debug for DedicatedBlockAllocator
impl Debug for DedicatedBlockAllocator
Source§impl SubAllocator for DedicatedBlockAllocator
impl SubAllocator for DedicatedBlockAllocator
fn allocate( &mut self, size: u64, _alignment: u64, _allocation_type: AllocationType, _granularity: u64, name: &str, ) -> Result<(u64, NonZeroU64)>
fn free(&mut self, chunk_id: Option<NonZeroU64>) -> Result<()>
fn rename_allocation( &mut self, chunk_id: Option<NonZeroU64>, name: &str, ) -> Result<()>
fn report_memory_leaks( &self, log_level: Level, memory_type_index: usize, memory_block_index: usize, )
fn report_allocations(&self) -> Vec<AllocationReport>
fn allocated(&self) -> u64
Source§fn supports_general_allocations(&self) -> bool
fn supports_general_allocations(&self) -> bool
impl SubAllocatorBase for DedicatedBlockAllocator
Auto Trait Implementations§
impl Freeze for DedicatedBlockAllocator
impl RefUnwindSafe for DedicatedBlockAllocator
impl Send for DedicatedBlockAllocator
impl Sync for DedicatedBlockAllocator
impl Unpin for DedicatedBlockAllocator
impl UnsafeUnpin for DedicatedBlockAllocator
impl UnwindSafe for DedicatedBlockAllocator
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