This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

1use crate::Point; 2use serde_wasm_bindgen; 3use wasm_bindgen::{JsValue, convert::FromWasmAbi, convert::IntoWasmAbi}; 4 5impl From<Point> for JsValue { 6 fn from(val: Point) -> Self { 7 serde_wasm_bindgen::to_value(&val).unwrap() 8 } 9} 10 11impl wasm_bindgen::describe::WasmDescribe for Point { 12 fn describe() { 13 JsValue::describe() 14 } 15} 16 17impl wasm_bindgen::convert::IntoWasmAbi for Point { 18 type Abi = <JsValue as IntoWasmAbi>::Abi; 19 20 fn into_abi(self) -> Self::Abi { 21 serde_wasm_bindgen::to_value(&self).unwrap().into_abi() 22 } 23} 24 25impl wasm_bindgen::convert::FromWasmAbi for Point { 26 type Abi = <JsValue as FromWasmAbi>::Abi; 27 28 unsafe fn from_abi(js: Self::Abi) -> Self { 29 serde_wasm_bindgen::from_value(unsafe { JsValue::from_abi(js) }).unwrap() 30 } 31}