math_rs/ffi/wasm/
result.rs1use wasm_bindgen::JsValue;
2
3use crate::result::MathError;
4
5impl From<MathError> for JsValue {
6 fn from(value: MathError) -> Self {
7 match value {
8 MathError::MatrixError(error) => JsValue::from_str(&error),
9 }
10 }
11}