pub fn keys_from_js<'a, C: Context<'a>>(
    cx: &mut C,
    keys_js: Handle<'_, JsArray>
) -> NeonResult<Vec<KeyData>>
Expand description

Function to convert JsArray of KeyData to Vec<KeyData>

Arguments

  • cx - Neon FunctionContext
  • keys_js - Neon JsArray of JsObjects

Returns

  • Vec<KeyData>

Errors

  • Throws a Neon error if the keys cannot be converted