Commit ab4eafc
rust: init: Add default() utility function
Initializer for types with Default::default() implementations in init
context. This, by nature, only works for types which are not pinned.
Signed-off-by: Asahi Lina <lina@asahilina.net>1 parent 63ac0a8 commit ab4eafc
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1461 | 1461 | | |
1462 | 1462 | | |
1463 | 1463 | | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
1464 | 1479 | | |
1465 | 1480 | | |
1466 | 1481 | | |
| |||
0 commit comments