Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![crate_type = "lib"]
- #![allow(unused)]
- pub struct Rect {
- x: isize,
- y: isize,
- w: isize,
- h: isize
- }
- pub
- struct World {
- cellsize: usize,
- cells: Vec<Vec<Rect>>
- entities: Vec<Rect>
- }
- impl World {
- pub fn new(cellsize: usize)
- }
- #[cfg(test)]
- mod tests {
- #[test]
- fn test() {}
- }
- fn main() {}
Add Comment
Please, Sign In to add comment