title: How to get pointer offset in bytes?
body: <p>While raw pointers in Rust have the <a href="https://doc.rust-lang.org/std/primitive.pointer.html#method.offset" rel="nofollow"><code>offset</code></a> method, this only increments by the size of the pointer. How can I get access to the pointer in bytes?</p>
  
  <p>Something like this in C:</p>
  
  <pre><code>var_offset = (typeof(var))((char *)(var) + offset);
  </code></pre>