Add a TryIntoJs
trait and derive macro to transform Rust values into JsValue
#3874
Labels
Milestone
TryIntoJs
trait and derive macro to transform Rust values into JsValue
#3874
Basically the opposite of
TryFromJs
.Conversions
From<T> for JsValue
are implemented for a lot of primitive values, but not as much for complex Rust types.This is useful when calling into JavaScript functions (using
JsObject::call()
) and passing in Rust values that are not primitive.The text was updated successfully, but these errors were encountered: