pub fn track_raw_ptr_mut<T: ?Sized>(
var_name: &str,
var_id: usize,
ptr_type: &str,
location: &str,
ptr: *mut T,
) -> *mut TExpand description
Track mutable raw pointer creation.
Records a RawPtrCreated event. Use this when creating a *mut T pointer.
§Arguments
var_name- Name for the pointer variablevar_id- Unique identifierptr_type- Type description (e.g., “*mut i32”)location- Source locationptr- The raw pointer (returned unchanged)
§Returns
The input pointer, unchanged.
§Safety
This function is safe to call, but the pointer it tracks may be unsafe to dereference.