Function try_get_u16_from_prop

Source
pub fn try_get_u16_from_prop(jsv: &JsValue, prop: &str) -> Result<u16, Error>
Expand description

Obtain u16 value from the object property prop. Results in an Error if the value is not a number or the number value is out of bounds (0..u16::MAX).