4 ms·
> I don't think that pointer provenance rears its ugly head here. You are generally free to convert a pointer to an integer and then back It's worth noting tha
by MaulingMonkey 4y ago
> I don't think that pointer provenance rears its ugly head here. You are generally free to convert a pointer to an integer and then back
It's worth noting that Rust is experimenting with making this not so free for one to do:
https://doc.rust-lang.org/std/ptr/index.html#pointer-usize-pointer-roundtrips-and-exposed-provenance https://doc.rust-lang.org/std/ptr/index.html#pointer-usize-p...