pub fn serialize<S: Serializer, T: JsCast>(
val: &T,
ser: S,
) -> Result<S::Ok, S::Error>Expand description
Serialize any JsCast value.
When used with the Serializer in serde_wasm_bindgen, this serializes the value by
passing it through as a JsValue.
This function is compatible with the serde(serialize_with) derive annotation.