pub struct PartialAllocationInfo {Show 15 fields
pub ptr: Option<usize>,
pub size: Option<usize>,
pub var_name: Option<Option<String>>,
pub type_name: Option<Option<String>>,
pub scope_name: Option<Option<String>>,
pub timestamp_alloc: Option<u64>,
pub timestamp_dealloc: Option<Option<u64>>,
pub thread_id: Option<String>,
pub borrow_count: Option<usize>,
pub stack_trace: Option<Option<Vec<String>>>,
pub is_leaked: Option<bool>,
pub lifetime_ms: Option<Option<u64>>,
pub borrow_info: Option<BorrowInfo>,
pub clone_info: Option<CloneInfo>,
pub ownership_history_available: Option<bool>,
}
Expand description
Partial allocation information with only requested fields
Fields§
§ptr: Option<usize>
§size: Option<usize>
§var_name: Option<Option<String>>
§type_name: Option<Option<String>>
§scope_name: Option<Option<String>>
§timestamp_alloc: Option<u64>
§timestamp_dealloc: Option<Option<u64>>
§thread_id: Option<String>
§borrow_count: Option<usize>
§stack_trace: Option<Option<Vec<String>>>
§is_leaked: Option<bool>
§lifetime_ms: Option<Option<u64>>
§borrow_info: Option<BorrowInfo>
§clone_info: Option<CloneInfo>
§ownership_history_available: Option<bool>
Implementations§
Source§impl PartialAllocationInfo
impl PartialAllocationInfo
Sourcepub fn to_full_allocation(self) -> AllocationInfo
pub fn to_full_allocation(self) -> AllocationInfo
Convert to a full AllocationInfo (filling missing fields with defaults)
Sourcepub fn has_field(&self, field: &AllocationField) -> bool
pub fn has_field(&self, field: &AllocationField) -> bool
Check if a specific field is present
Sourcepub fn field_count(&self) -> usize
pub fn field_count(&self) -> usize
Get the number of fields that are present
Trait Implementations§
Source§impl Clone for PartialAllocationInfo
impl Clone for PartialAllocationInfo
Source§fn clone(&self) -> PartialAllocationInfo
fn clone(&self) -> PartialAllocationInfo
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 PartialAllocationInfo
impl Debug for PartialAllocationInfo
Source§impl Default for PartialAllocationInfo
impl Default for PartialAllocationInfo
Source§fn default() -> PartialAllocationInfo
fn default() -> PartialAllocationInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PartialAllocationInfo
impl RefUnwindSafe for PartialAllocationInfo
impl Send for PartialAllocationInfo
impl Sync for PartialAllocationInfo
impl Unpin for PartialAllocationInfo
impl UnwindSafe for PartialAllocationInfo
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