Commit e8f05cf
committed
rust: init: Implement Zeroable::zeroed()
By analogy to Default::default(), this just returns the zeroed
representation of the type directly. init::zeroed() is the version that
returns an initializer.
Signed-off-by: Asahi Lina <[email protected]>1 parent b9e568e commit e8f05cf
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1584 | 1584 | | |
1585 | 1585 | | |
1586 | 1586 | | |
1587 | | - | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
1588 | 1595 | | |
1589 | 1596 | | |
1590 | 1597 | | |
| |||
0 commit comments