typed_grid_ext!() { /* proc-macro */ }Expand description
Generates types for grid navigation with extension methods.
ⓘ
use typed_grid_macro::*;
typed_grid_ext!(2, 2);
impl Moved for i32 {
fn moved(&mut self, p: Position) {
*self += 1;
println!("MOVED: {p:?} {self}")
}
}