Guest User

Untitled

a guest
Jun 20th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. use std::collections::HashMap;
  2.  
  3. pub type Function = fn() -> (String, f32, u8);
  4.  
  5. pub fn mv_all() -> HashMap<&'static str, Function> {
  6. let mut all = HashMap::new();
  7. all.insert("mv00", mv00 as Function);
  8. all.insert("mv01", mv00 as Function);
  9. all.insert("mv02", mv00 as Function);
  10. all
  11. }
  12.  
  13. fn mv00() -> (String, f32, u8) {
  14. unimplemented!();
  15. }
  16.  
  17. fn main() {}
Add Comment
Please, Sign In to add comment