pub fn updates_to_js<'a, C: Context<'a>>(
    cx: &mut C,
    updates: Vec<Update>
) -> JsResult<'a, JsArray>
Expand description

Function to convert rust Vec<Update> to JsArray of JsObjects

Arguments

  • cx - Neon FunctionContext
  • updates - rust Vec<Update>

Returns

  • JsResult<JsArray> - Neon JsArray of JsObjects

Errors

  • Throws a Neon error if the updates cannot be converted