Function try_get_u8_from_prop

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

Obtain u8 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..u8::MAX).