use zcoord::{Mutable,ZCoord};
use base_misc::default;
+// ---------- general, errors, etc. ----------
+
#[derive(Error,Clone,Copy,Debug,Eq,PartialEq)]
#[error("packed Z coordinate wrong JS type (not a string)")]
pub struct JsZCoordTypeError;
js.as_string().ok_or(JsZCoordTypeError).e()?
}
+// ---------- zcoord ----------
+
#[throws(JsValue)]
#[wasm_bindgen]
pub fn check(packed: &JsValue) {
}
}
+// ---------- timestamps ----------
+
#[wasm_bindgen]
pub struct TimestampAbbreviator {
last: String,
}
}
+// ---------- angle ----------
+
#[wasm_bindgen]
pub fn angle_transform(angle: u8) -> JsString {
base_misc::raw_angle_transform(angle).into()
}
+// ---------- setup ----------
+
#[wasm_bindgen]
pub fn setup(s: &str) -> JsString {
// returning String produces a wasm-opt error, as here