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>, ()>
where T: Number + As<f64>, M: Number + As<T>, f64: As<T>,