Guest User

Untitled

a guest
Mar 18th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #![crate_type = "lib"]
  2. #![allow(unused)]
  3.  
  4. pub struct Rect {
  5. x: isize,
  6. y: isize,
  7. w: isize,
  8. h: isize
  9. }
  10.  
  11. pub
  12.  
  13. struct World {
  14. cellsize: usize,
  15. cells: Vec<Vec<Rect>>
  16. entities: Vec<Rect>
  17. }
  18.  
  19. impl World {
  20. pub fn new(cellsize: usize)
  21. }
  22.  
  23. #[cfg(test)]
  24. mod tests {
  25. #[test]
  26. fn test() {}
  27. }
  28.  
  29. fn main() {}
Add Comment
Please, Sign In to add comment