SHARE
TWEET

Untitled

a guest Jun 25th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. use core::ffi::c_void;
  2.  
  3. struct TestVM {
  4.     pub env: usize,
  5. }
  6.  
  7. fn main() {
  8.     let mut vm = TestVM { env: 5 };
  9.     let vm = &mut vm;
  10.     let env = &mut (*vm).env as *mut _ as *mut c_void;
  11.     println!("{:?}", env);
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top