Commit f948f32
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 <lina@asahilina.net>1 parent 11fa8ec commit f948f32
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1368 | 1368 | | |
1369 | 1369 | | |
1370 | 1370 | | |
1371 | | - | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
1372 | 1379 | | |
1373 | 1380 | | |
1374 | 1381 | | |
| |||
0 commit comments