Skip to main content

value_of

Function value_of 

Source
pub unsafe fn value_of(value: JsValue) -> Option<Value>
Expand description

The engine value behind a JSValue, when it is one this layer can decode.

ยงSafety

value must be a JSValue from this crate (or a primitive), and a reference-counted one must be alive.