You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>For the complete <ahref="/book/engine/compile.html"><code>AST</code></a> API, refer to the <ahref="https://docs.rs/rhai/1.22.0/rhai/struct.AST.html">documentation</a> online.</p>
229
+
<p>For the complete <ahref="/book/engine/compile.html"><code>AST</code></a> API, refer to the <ahref="https://docs.rs/rhai/1.23.0/rhai/struct.AST.html">documentation</a> online.</p>
230
230
</div>
231
231
</div>
232
232
<h2id="extract-only-functions"><aclass="header" href="#extract-only-functions">Extract Only Functions</a></h2>
<tr><td><code>eval_ast</code></td><tdstyle="text-align: center"><code>bool</code></td><tdstyle="text-align: center"><code>true</code></td><tdstyle="text-align: center"><code>eval_ast</code></td><td>evaluate the <ahref="/book/engine/compile.html"><code>AST</code></a> before calling the target <ahref="/book/language/functions.html">function</a> (useful to run <ahref="/book/language/modules/import.html"><code>import</code></a> statements)</td></tr>
365
365
<tr><td><code>rewind_scope</code></td><tdstyle="text-align: center"><code>bool</code></td><tdstyle="text-align: center"><code>true</code></td><tdstyle="text-align: center"><code>rewind_scope</code></td><td>rewind the custom <ahref="/book/engine/scope.html"><code>Scope</code></a> at the end of the <ahref="/book/language/functions.html">function</a> call so new local variables are removed</td></tr>
366
366
<tr><td><code>this_ptr</code></td><tdstyle="text-align: center"><ahref="/book/language/dynamic.html"><code>Option<&mut Dynamic></code></a></td><tdstyle="text-align: center"><code>None</code></td><tdstyle="text-align: center"><code>bind_this_ptr</code></td><td>bind the <code>this</code> pointer to a specific value</td></tr>
367
+
<tr><td><code>in_all_namespaces</code></td><tdstyle="text-align: center"><code>bool</code></td><tdstyle="text-align: center"><code>false</code></td><tdstyle="text-align: center"><code>in_all_namespaces</code></td><td>call function in all namespaces, not only scripted function within the <ahref="/book/engine/compile.html"><code>AST</code></a></td></tr>
367
368
<tr><td><code>tag</code></td><tdstyle="text-align: center"><ahref="/book/language/dynamic.html"><code>Option<Dynamic></code></a></td><tdstyle="text-align: center"><code>None</code></td><tdstyle="text-align: center"><code>with_tag</code></td><td>set the <em>custom state</em> for this evaluation (accessed via <ahref="/book/rust/context.html"><code>NativeCallContext::tag</code></a>)</td></tr>
0 commit comments