Module :: mem_tools
Collection of tools to manipulate memory.
Performant size / pointer / region / data comparing.
Basic use-case
use mem_tools as mem;
// Are two pointers are the same, not taking into accoint type.
// Unlike `std::ptr::eq()` does not require arguments to have the same type.
let src1 = ;
let src2 = ;
assert!;
// Are two pointers points on data of the same size.
let src1 = "abc";
let src2 = "cba";
assert!;
// Are two pointers points on the same region, ie same size and same pointer.
// Does not require arguments to have the same type.
let src1 = "abc";
let src2 = "abc";
assert!;
To add to your project
Try out from the repository