Commit c349daa
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 8d0d979 commit c349daa
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1574 | 1574 | | |
1575 | 1575 | | |
1576 | 1576 | | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
1577 | 1592 | | |
1578 | 1593 | | |
1579 | 1594 | | |
| |||
0 commit comments