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: src/expressions/operator-expr.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -360,6 +360,10 @@ Here `*T` means either `*const T` or `*mut T`.
360
360
*`char` casts to the value of the code point, then uses a numeric cast if needed.
361
361
*`u8` to `char` cast
362
362
* Casts to the `char` with the corresponding code point.
363
+
* Pointer to address cast
364
+
* Casting from a valid raw pointer to `usize` will produce a numeric address representing the pointer.
365
+
* Address to pointer cast
366
+
* Casting from `usize` to a raw pointer will produce a pointer with the same value as the original pointer if the `usize` was obtained through a pointer to address cast of a valid pointer of the same type.
363
367
364
368
\* if integer-to-float casts with this rounding mode and overflow behavior are
365
369
not supported natively by the hardware, these casts will likely be slower than
0 commit comments