pub struct AllocationSource {
pub function: String,
pub location: Option<(String, u32)>,
pub stack_depth: usize,
pub thread_id: u64,
pub context: AllocationContext,
}Expand description
Memory allocation source information
Captures the context and origin of memory allocations for debugging and optimization purposes.
Fields§
§function: StringFunction name where allocation occurred
location: Option<(String, u32)>File and line number
stack_depth: usizeCall stack depth
thread_id: u64Thread ID
context: AllocationContextAllocation context
Implementations§
Trait Implementations§
Source§impl Clone for AllocationSource
impl Clone for AllocationSource
Source§fn clone(&self) -> AllocationSource
fn clone(&self) -> AllocationSource
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 moreAuto Trait Implementations§
impl Freeze for AllocationSource
impl RefUnwindSafe for AllocationSource
impl Send for AllocationSource
impl Sync for AllocationSource
impl Unpin for AllocationSource
impl UnsafeUnpin for AllocationSource
impl UnwindSafe for AllocationSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more