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
<li>Less than: dispatches to the <code>lt</code> binary function on the type</li>
223
223
<li>Length: calls the <code>len</code> method on <code>ReflectReference</code> or on the table if the value is one.</li>
224
224
<li>Iteration: dispatches to the <code>iter</code> method on <code>ReflectReference</code> which returns an iterator function, this can be repeatedly called until it returns <code>ScriptValue::Unit</code> to signal the end of the iteration.</li>
225
-
<li>Print: calls the <code>display_ref</code> method on <code>ReflectReference</code> or on the table if the value is one.</li>
225
+
<li>Print: calls the <code>display</code> method on <code>ReflectReference</code> or on the table if the value is one.</li>
226
+
<li>Debug print: calls the <code>debug</code> method on <code>ReflectReference</code> or on the table if the value is one.</li>
<tr><td>eq</td><td>an equality function, used for checking if two values are equal</td><td>✅</td><td>❌</td></tr>
294
294
<tr><td>lt</td><td>a less than function, used for checking if a value is less than another</td><td>✅</td><td>❌</td></tr>
295
295
<tr><td>iter</td><td>an iterator function, used for iterating over a value</td><td>❌</td><td>✅</td></tr>
296
-
<tr><td>display_ref</td><td>a display function, used for displaying a reference to a value</td><td>❌</td><td>✅</td></tr>
297
-
<tr><td>display_value</td><td>a display function, used for displaying a mutable reference to a value</td><td>❌</td><td>✅</td></tr>
296
+
<tr><td>display</td><td>a display function, used for displaying a reference to a value</td><td>❌</td><td>✅</td></tr>
297
+
<tr><td>debug</td><td>a display function, used for displaying a mutable reference to a value</td><td>❌</td><td>✅</td></tr>
298
298
</tbody></table>
299
299
</div>
300
300
<p>In this context <code>overridable</code> indicates whether language implementations will look for a specific function on your type before looking at the generic <code>ReflectReference</code> namespace. You can still remove the existing registration for these functions on the <code>ReflectReference</code> namespace if you want to replace them with your own implementation.</p>
Copy file name to clipboardExpand all lines: core_bindings/types.html
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -192,8 +192,8 @@ <h2 id="available-types"><a class="header" href="#available-types">Available Typ
192
192
<tr><td><ahref="././types/scriptqueryresult.html"><code>ScriptQueryResult</code></a></td><td>A result from a query.</td></tr>
193
193
<tr><td><ahref="././types/scriptresourceregistration.html"><code>ScriptResourceRegistration</code></a></td><td>A reference to a resource type's reflection registration. In general think of this as a handle to...</td></tr>
194
194
<tr><td><ahref="././types/scripttyperegistration.html"><code>ScriptTypeRegistration</code></a></td><td>A reference to a type which is not a `Resource` or `Component`. In general think of this as a han...</td></tr>
195
-
<tr><td><ahref="././types/scriptsystembuilder.html"><code>ScriptSystemBuilder</code></a></td><td>A builder for systems living in scripts</td></tr>
196
195
<tr><td><ahref="././types/scriptattachment.html"><code>ScriptAttachment</code></a></td><td>Specifies a unique attachment of a script. These attachments are mapped to [`ContextKey`]'s depending on the context policy used.</td></tr>
196
+
<tr><td><ahref="././types/scriptsystembuilder.html"><code>ScriptSystemBuilder</code></a></td><td>A builder for systems living in scripts</td></tr>
<tr><td><ahref="././types/handlescriptasset.html"><code>Handle<ScriptAsset></code></a></td><td>A handle to a specific [`Asset`] of type `A`. Handles act as abstract "references" to assets, whose data are stored in the [`Assets<A>`](crate::prelude::Assets)...</td></tr>
@@ -470,13 +470,13 @@ <h2 id="available-types"><a class="header" href="#available-types">Available Typ
470
470
<tr><td><ahref="././types/triangle3dmeshbuilder.html"><code>Triangle3dMeshBuilder</code></a></td><td>A builder used for creating a [`Mesh`] with a [`Triangle3d`] shape.</td></tr>
<tr><td><ahref="././types/scriptvalue.html"><code>ScriptValue</code></a></td><td>An abstraction of values that can be passed to and from scripts. This allows us to re-use logic be...</td></tr>
476
473
<tr><td><ahref="././types/functionarginfo.html"><code>FunctionArgInfo</code></a></td><td>Information about a function argument.</td></tr>
477
474
<tr><td><ahref="././types/functioninfo.html"><code>FunctionInfo</code></a></td><td>Information about a function.</td></tr>
478
475
<tr><td><ahref="././types/functionreturninfo.html"><code>FunctionReturnInfo</code></a></td><td>Information about a function return value.</td></tr>
479
-
<tr><td><ahref="././types/interoperror.html"><code>InteropError</code></a></td><td>An error thrown when interoperating with scripting languages.</td></tr>
476
+
<tr><td><ahref="././types/interoperror.html"><code>InteropError</code></a></td><td>An error occurring when converting between rust and a script context.</td></tr>
477
+
<tr><td><ahref="././types/namespace.html"><code>Namespace</code></a></td><td>A namespace for functions</td></tr>
<tr><td><ahref="././types/scriptvalue.html"><code>ScriptValue</code></a></td><td>An abstraction of values that can be passed to and from scripts. This allows us to re-use logic be...</td></tr>
480
480
<tr><td><ahref="././types/alphamode.html"><code>AlphaMode</code></a></td><td>Sets how a material's base color alpha channel is used for transparency.</td></tr>
481
481
<tr><td><ahref="././types/camera.html"><code>Camera</code></a></td><td>The defining [`Component`] for camera entities, storing information about how and what to render through this camera. The [`Camera`]...</td></tr>
482
482
<tr><td><ahref="././types/cameramaintextureusages.html"><code>CameraMainTextureUsages</code></a></td><td>This component lets you control the [`TextureUsages`] field of the main texture generated for the camera</td></tr>
@@ -592,10 +592,10 @@ <h2 id="available-types"><a class="header" href="#available-types">Available Typ
<tr><td><ahref="./aabb2d/closest_point.html">closest_point</a></td><td>Finds the point on the AABB that is closest to the given `point`. If the point is outside the AABB...</td></tr>
198
-
<tr><td><ahref="./aabb2d/new.html">new</a></td><td>Constructs an AABB from its center and half-size.</td></tr>
199
197
<tr><td><ahref="./aabb2d/bounding_circle.html">bounding_circle</a></td><td>Computes the smallest [`BoundingCircle`] containing this [`Aabb2d`].</td></tr>
<tr><td><ahref="./aabb2d/closest_point.html">closest_point</a></td><td>Finds the point on the AABB that is closest to the given `point`. If the point is outside the AABB...</td></tr>
201
+
<tr><td><ahref="./aabb2d/new.html">new</a></td><td>Constructs an AABB from its center and half-size.</td></tr>
0 commit comments