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
Copy file name to clipboardExpand all lines: docs/src/Summary/controlling-script-bindings.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,8 +153,10 @@ There are a few reserved functions that you can override by registering them on
153
153
| eq | an equality function, used for checking if two values are equal | ✅ | ❌ |
154
154
| lt | a less than function, used for checking if a value is less than another | ✅ | ❌ |
155
155
| iter | an iterator function, used for iterating over a value | ❌ | ✅ |
156
-
| display | a display function, used for displaying a reference to a value | ❌ | ✅ |
157
-
| debug | a display function, used for displaying a mutable reference to a value | ❌ | ✅ |
156
+
| display | a display function, used for pretty printing values | ❌\*| ✅ |
157
+
| debug | a display function, used for displaying the internals of a value | ❌\*| ✅ |
158
+
159
+
\* - You can register an instance of `ReflectDisplayWithTypeInfo` type data on `Reflect` implementing types to override their printing behavior
158
160
159
161
In this context `overridable` indicates whether language implementations will look for a specific function on your type before looking at the generic `ReflectReference` namespace. You can still remove the existing registration for these functions on the `ReflectReference` namespace if you want to replace them with your own implementation.
0 commit comments