1 2 3 4 5 6 7 8
use wasm_bindgen::prelude::*; #[derive(Copy, Clone, PartialEq, Debug)] #[wasm_bindgen] pub struct Pos { pub x: f64, pub y: f64 }