pub enum PromotedAllocation {
Pool {
ptr: *mut u8,
size: usize,
tag: Option<&'static str>,
type_name: &'static str,
},
Heap {
ptr: *mut u8,
size: usize,
tag: Option<&'static str>,
type_name: &'static str,
},
Scratch {
pool_name: &'static str,
ptr: *mut u8,
size: usize,
tag: Option<&'static str>,
type_name: &'static str,
},
Failed {
reason: PromotionFailure,
meta: RetainedMeta,
},
}Expand description
A promoted allocation after frame end.
Variants§
Pool
Promoted to pool allocator
Heap
Promoted to heap allocator
Scratch
Promoted to scratch pool
Fields
Failed
Promotion failed (budget exceeded, etc.)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PromotedAllocation
impl RefUnwindSafe for PromotedAllocation
impl !Send for PromotedAllocation
impl !Sync for PromotedAllocation
impl Unpin for PromotedAllocation
impl UnwindSafe for PromotedAllocation
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