Was this page helpful?
RustResult¶
RustResult()
A native query result.
Rust gives each result to JS as an External, not as an instance of a native class.
An instance of a native class costs more N-API work: on creation, and on each method call.
This class gives the result the same methods that the native class had.
Each method calls one Rust function with the External.