pub enum AllocationSinkKind {
Stack,
ThreadLocal,
ArenaAllocated,
HeapLongLived,
HeapShortLived,
}Variants§
Implementations§
Source§impl AllocationSinkKind
impl AllocationSinkKind
pub fn is_stack_eligible(&self) -> bool
pub fn description(&self) -> &str
Trait Implementations§
Source§impl Clone for AllocationSinkKind
impl Clone for AllocationSinkKind
Source§fn clone(&self) -> AllocationSinkKind
fn clone(&self) -> AllocationSinkKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AllocationSinkKind
impl Debug for AllocationSinkKind
Source§impl PartialEq for AllocationSinkKind
impl PartialEq for AllocationSinkKind
impl StructuralPartialEq for AllocationSinkKind
Auto Trait Implementations§
impl Freeze for AllocationSinkKind
impl RefUnwindSafe for AllocationSinkKind
impl Send for AllocationSinkKind
impl Sync for AllocationSinkKind
impl Unpin for AllocationSinkKind
impl UnsafeUnpin for AllocationSinkKind
impl UnwindSafe for AllocationSinkKind
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