Files
rust/src/doc
Ralf Jung 244465dbb8 Rollup merge of #73001 - ilya-bobyr:master, r=dtolnay
Free `default()` forwarding to `Default::default()`

It feels a bit redundant to have to say `Default::default()` every time I need a new value of a type that has a `Default` instance.
Especially so, compared to Haskell, where the same functionality is called `def`.
Providing a free `default()` function that forwards to `Default::default()` seems to improve the situation.
The trait is still there, so if someone wants to be explicit and to say `Default::default()` - it still works, but if imported as `std::default::default;`, then the free function reduces typing and visual noise.
2020-06-08 09:55:31 +02:00
..
2020-05-25 17:17:27 -07:00
2020-05-25 17:17:27 -07:00
2020-05-25 17:17:27 -07:00
2020-05-12 11:27:03 -07:00
2020-05-25 17:17:27 -07:00
2020-05-25 17:17:27 -07:00
2020-04-08 12:53:12 -05:00
2019-09-30 07:46:10 +02:00
2018-10-05 08:52:44 -07:00
2017-02-21 14:03:13 -05:00
2019-03-24 22:06:34 -04:00
2018-05-17 12:25:24 -07:00