1 2 3 4 5 6 7 8 9
extern crate alloc; use alloc::string::String; use alloc::string::ToString; #[allow(non_snake_case)] pub(crate) fn to_pointer_id<T>(ptr: *const T) -> String { (ptr as usize).to_string() }