pub struct EnhancedAllocationInfo {Show 14 fields
pub ptr: usize,
pub size: usize,
pub var_name: Option<String>,
pub type_name: Option<String>,
pub scope_name: Option<String>,
pub timestamp_alloc: u64,
pub timestamp_dealloc: Option<u64>,
pub borrow_count: usize,
pub stack_trace: Option<Vec<String>>,
pub is_leaked: bool,
pub lifetime_ms: Option<u64>,
pub borrow_info: Option<BorrowInfo>,
pub clone_info: Option<CloneInfo>,
pub ownership_history_available: bool,
}
Expand description
Enhanced allocation info with improve.md extensions
Fields§
§ptr: usize
Memory address of the allocation
size: usize
Size of the allocation in bytes
var_name: Option<String>
Optional variable name associated with this allocation
type_name: Option<String>
Optional type name of the allocated data
scope_name: Option<String>
Optional scope name where the allocation occurred
timestamp_alloc: u64
Timestamp when the allocation was made
timestamp_dealloc: Option<u64>
Optional timestamp when the allocation was deallocated
borrow_count: usize
Number of active borrows for this allocation
stack_trace: Option<Vec<String>>
Optional stack trace at the time of allocation
is_leaked: bool
Whether this allocation is considered leaked
lifetime_ms: Option<u64>
Precise lifetime in milliseconds (calculated from creation to destruction)
borrow_info: Option<BorrowInfo>
Enhanced borrowing information as specified in improve.md
clone_info: Option<CloneInfo>
Enhanced cloning information as specified in improve.md
ownership_history_available: bool
Flag indicating if detailed ownership history is available in lifetime.json
Trait Implementations§
Source§impl Clone for EnhancedAllocationInfo
impl Clone for EnhancedAllocationInfo
Source§fn clone(&self) -> EnhancedAllocationInfo
fn clone(&self) -> EnhancedAllocationInfo
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 EnhancedAllocationInfo
impl Debug for EnhancedAllocationInfo
Source§impl<'de> Deserialize<'de> for EnhancedAllocationInfo
impl<'de> Deserialize<'de> for EnhancedAllocationInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EnhancedAllocationInfo
impl RefUnwindSafe for EnhancedAllocationInfo
impl Send for EnhancedAllocationInfo
impl Sync for EnhancedAllocationInfo
impl Unpin for EnhancedAllocationInfo
impl UnwindSafe for EnhancedAllocationInfo
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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