Commit e94d0e8
committed
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 e3012f8 commit e94d0e8
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1257 | 1257 | | |
1258 | 1258 | | |
1259 | 1259 | | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
1260 | 1275 | | |
1261 | 1276 | | |
1262 | 1277 | | |
| |||
0 commit comments