# RustResult

<div class="jsdoc-content"><header>
    
        <h2><span class="attribs"><span class="type-signature"></span></span>RustResult<span class="signature">()</span><span class="type-signature"></span></h2>
        
            <div class="class-description"><p>A native query result.</p>
<p>Rust gives each result to JS as an <code>External</code>, 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 <code>External</code>.</p></div>
        
    
</header>


    
        

    
    </div>

## Constructor

<div class="jsdoc-content">
    

    
    <h4 class="name" id="RustResult"><span class="type-signature"></span>new RustResult<span class="signature">()</span><span class="type-signature"></span></h4>
    

    















<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.7.1/lib/types/results-wrapper.ts#L28" target="_blank" rel="noopener">types/results-wrapper.ts, line 28</a></p></div>




















    
    </div>
