Guest User

Untitled

a guest
Apr 26th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. //something.rs
  2. use other::do_stuff;
  3. pub fn start() {
  4. do_stuff(/*What do i put here*/);
  5. }
  6.  
  7. //main.rs
  8. mod something;
  9. mod other;
  10. mod third;
  11. use third::Third;
  12. fn main() {
  13. let th = Third::new();
  14. something::start();
  15. }
  16.  
  17. //other.rs
  18. use third::Third;
  19. pub fn do_stuff(thrd: Third) {
  20. /* do something with it */
  21. }
  22.  
  23. //third.rs
  24. pub struct Third {
  25. /* Omitted */
  26. }
Add Comment
Please, Sign In to add comment