Function mozjs::conversions::convert_int_from_jsval
source ยท unsafe fn convert_int_from_jsval<T, M>(
cx: *mut JSContext,
value: HandleValue<'_>,
option: ConversionBehavior,
convert_fn: unsafe fn(_: *mut JSContext, _: HandleValue<'_>) -> Result<M, ()>,
) -> Result<ConversionResult<T>, ()>