Hacker News new | ask | show | jobs
by FreeFull 3666 days ago
You can actually turn a pointer into an usize without using an unsafe block. For example, here's how you'd do it with a reference:

    let the_bits = pointer as *const _ as usize;