@@ -454,23 +454,23 @@ Any cast that does not fit either a coercion rule or an entry in the table is a
454
454
Here ` *T ` means either ` *const T ` or ` *mut T ` . ` m ` stands for optional ` mut ` in
455
455
reference types and ` mut ` or ` const ` in pointer types.
456
456
457
- | Type of ` e ` | ` U ` | Cast performed by ` e as U ` |
458
- | -----------------------| -----------------------| ----------------------------------|
459
- | Integer or Float type | Integer or Float type | Numeric cast |
460
- | Enumeration | Integer type | Enum cast |
461
- | ` bool ` or ` char ` | Integer type | Primitive to integer cast |
462
- | ` u8 ` | ` char ` | ` u8 ` to ` char ` cast |
463
- | ` *T ` | ` *V ` [ ^ 1 ] | Pointer to pointer cast |
464
- | ` *T ` where ` T: Sized ` | Integer type | Pointer to address cast |
465
- | Integer type | ` *V ` where ` V: Sized ` | Address to pointer cast |
466
- | ` &m₁ [T; n] ` | ` *m₂ T ` [ ^ 2 ] | Array to pointer cast |
467
- | ` *m₁ [T; n] ` | ` *m₂ T ` [ ^ 2 ] | Array to pointer cast |
468
- | [ Function item] | [ Function pointer] | Function item to function pointer cast |
469
- | [ Function item] | ` *V ` where ` V: Sized ` | Function item to pointer cast |
470
- | [ Function item] | Integer | Function item to address cast |
471
- | [ Function pointer] | ` *V ` where ` V: Sized ` | Function pointer to pointer cast |
472
- | [ Function pointer] | Integer | Function pointer to address cast |
473
- | Closure [ ^ 3 ] | Function pointer | Closure to function pointer cast |
457
+ | Type of ` e ` | ` U ` | Cast performed by ` e as U ` |
458
+ | -----------------------| -----------------------| ------------------------------------------------------- |
459
+ | Integer or Float type | Integer or Float type | [ Numeric cast] [ expr.as.numeric ] |
460
+ | Enumeration | Integer type | [ Enum cast] [ expr.as.enum ] |
461
+ | ` bool ` or ` char ` | Integer type | [ Primitive to integer cast] [ expr.as.bool-char-as-int ] |
462
+ | ` u8 ` | ` char ` | [ ` u8 ` to ` char ` cast] [ expr.as.u8-as-char ] |
463
+ | ` *T ` | ` *V ` [ ^ 1 ] | [ Pointer to pointer cast] [ expr.as.pointer ] |
464
+ | ` *T ` where ` T: Sized ` | Integer type | [ Pointer to address cast] [ expr.as.pointer-as-int ] |
465
+ | Integer type | ` *V ` where ` V: Sized ` | [ Address to pointer cast] [ expr.as.int-as-pointer ] |
466
+ | ` &m₁ [T; n] ` | ` *m₂ T ` [ ^ 2 ] | Array to pointer cast |
467
+ | ` *m₁ [T; n] ` | ` *m₂ T ` [ ^ 2 ] | Array to pointer cast |
468
+ | [ Function item] | [ Function pointer] | Function item to function pointer cast |
469
+ | [ Function item] | ` *V ` where ` V: Sized ` | Function item to pointer cast |
470
+ | [ Function item] | Integer | Function item to address cast |
471
+ | [ Function pointer] | ` *V ` where ` V: Sized ` | Function pointer to pointer cast |
472
+ | [ Function pointer] | Integer | Function pointer to address cast |
473
+ | Closure [ ^ 3 ] | Function pointer | Closure to function pointer cast |
474
474
475
475
[ ^ 1 ] : where ` T ` and ` V ` have compatible metadata:
476
476
* ` V: Sized ` , or
0 commit comments