from_js

Function from_js 

Source
pub fn from_js<'a, T>(
    context: *mut JSContext,
    value: &'a OwnedJsValue,
) -> Result<T>
where T: Deserialize<'a>,
Expand description

Deserialize an instance of type T from a JS value.