505860d87d35cc6d6a7e08d87b0b682fe9b44b78
[kaka/rust-sdl-test.git] / src / common / mod.rs
1 mod geometry;
2 pub use common::geometry::{
3     Point,
4     Dimension,
5     Radians,
6     Degrees,
7     Intersection,
8 };
9
10 mod time;
11 pub use common::time::ScopeTimer;
12
13 #[macro_export]
14 macro_rules! hashmap {
15     ($($k:expr => $v:expr),*) => {
16         {
17             let mut map = std::collections::HashMap::new();
18             $(map.insert($k, $v);)*
19             map
20         }
21     }
22 }