SHARE
TWEET

Untitled

a guest Jul 24th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn test() {
  2.     println!("test1");
  3. }
  4.  
  5. fn test2() {
  6.     println!("test2");
  7. }
  8.  
  9. fn main() {
  10.     let mut table = vec![test; 0x100];
  11.     table[0x50] = test2;
  12.    
  13.     table[0]();
  14.     table[0x50]();
  15. }
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