pub struct EnhancedPointerExtractor;
Expand description
Enhanced pointer extractor with validation and categorization
Implementations§
Source§impl EnhancedPointerExtractor
impl EnhancedPointerExtractor
Sourcepub fn extract_pointer_info<T: Trackable>(value: &T) -> PointerInfo
pub fn extract_pointer_info<T: Trackable>(value: &T) -> PointerInfo
Extract pointer information with validation and categorization
Sourcepub fn is_valid_heap_pointer(ptr: usize) -> bool
pub fn is_valid_heap_pointer(ptr: usize) -> bool
Check if a pointer is a valid heap pointer
Sourcepub fn is_synthetic_pointer(ptr: usize) -> bool
pub fn is_synthetic_pointer(ptr: usize) -> bool
Check if a pointer is synthetic (generated by our tracking system)
Sourcepub fn extract_vec_pointer<T>(vec: &Vec<T>) -> PointerInfo
pub fn extract_vec_pointer<T>(vec: &Vec<T>) -> PointerInfo
Enhanced extraction for Vec with capacity validation
Sourcepub fn extract_string_pointer(string: &String) -> PointerInfo
pub fn extract_string_pointer(string: &String) -> PointerInfo
Enhanced extraction for String with capacity validation
Sourcepub fn extract_box_pointer<T>(boxed: &Box<T>) -> PointerInfo
pub fn extract_box_pointer<T>(boxed: &Box<T>) -> PointerInfo
Enhanced extraction for Box with validation
Sourcepub fn extract_hashmap_pointer<K, V, S>(map: &HashMap<K, V, S>) -> PointerInfo
pub fn extract_hashmap_pointer<K, V, S>(map: &HashMap<K, V, S>) -> PointerInfo
Enhanced extraction for HashMap with bucket validation
Sourcepub fn get_pointer_statistics(pointers: &[PointerInfo]) -> PointerStatistics
pub fn get_pointer_statistics(pointers: &[PointerInfo]) -> PointerStatistics
Get pointer statistics for analysis
Auto Trait Implementations§
impl Freeze for EnhancedPointerExtractor
impl RefUnwindSafe for EnhancedPointerExtractor
impl Send for EnhancedPointerExtractor
impl Sync for EnhancedPointerExtractor
impl Unpin for EnhancedPointerExtractor
impl UnwindSafe for EnhancedPointerExtractor
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> 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