bors
e177df3d5c
Auto merge of #45379 - cuviper:unit_from_iter, r=alexcrichton
...
impl FromIterator<()> for ()
This just collapses all unit items from an iterator into one. This is
more useful when combined with higher-level abstractions, like
collecting to a `Result<(), E>` where you only care about errors:
```rust
use std::io::*;
data = vec![1, 2, 3, 4, 5];
let res: Result<()> = data.iter()
.map(|x| writeln!(stdout(), "{}", x))
.collect();
assert!(res.is_ok());
```
2017-11-08 01:32:12 +00:00
..
2017-11-07 22:40:11 +08:00
2017-10-15 22:10:07 +03:00
2017-11-03 15:53:36 +08:00
2017-11-04 20:53:27 -07:00
2017-10-26 22:32:24 -07:00
2017-10-08 18:46:42 -07:00
2017-11-05 11:42:59 +00:00
2017-11-04 20:01:11 -07:00
2017-10-12 07:46:02 +02:00
2017-09-16 23:41:04 +02:00
2017-10-25 07:51:36 -07:00
2017-09-30 01:45:21 +02:00
2017-11-08 01:32:12 +00:00
2017-09-30 11:33:47 +03:00
2017-10-31 11:25:39 -02:00
2017-10-08 21:44:13 +13:00
2017-10-11 21:35:53 -03:00
2017-09-30 11:33:47 +03:00
2017-11-07 18:04:33 +00:00
2017-11-04 20:01:11 -07:00
2017-10-26 13:59:18 -07:00
2017-11-03 00:28:50 +00:00
2017-11-02 10:19:41 +01:00
2017-11-03 19:36:18 +00:00
2017-10-26 13:59:18 -07:00
2017-09-17 14:19:24 -04:00
2017-11-06 23:30:57 +00:00
2017-11-07 14:24:15 +00:00
2017-11-04 23:09:19 +00:00
2017-11-03 16:13:21 -02:00
2017-11-03 19:07:45 +00:00
2017-11-03 00:29:54 +00:00
2017-11-05 22:06:15 +00:00
2017-11-06 23:30:57 +00:00
2017-11-06 23:30:57 +00:00
2017-10-02 17:18:20 +00:00
2017-11-04 18:07:07 +00:00
2017-11-05 22:06:15 +00:00
2017-11-06 15:52:42 +13:00
2017-11-07 14:24:15 +00:00
2017-11-04 00:09:14 +00:00
2017-11-06 02:02:11 +00:00
2017-11-07 22:40:16 +08:00
2017-11-07 22:40:13 +08:00
2017-11-03 21:28:04 +01:00
2017-11-07 22:40:20 +08:00
2017-10-17 22:14:14 -04:00
2017-11-06 05:16:15 +00:00
2017-10-05 05:04:40 +02:00
2017-10-11 09:10:59 -07:00
2017-11-03 16:13:21 -02:00
2017-10-11 21:35:53 -03:00
2017-10-19 15:20:47 +09:00
2017-11-07 22:40:20 +08:00
2017-11-06 20:43:46 +00:00
2017-11-06 13:03:06 -05:00
2017-10-24 19:37:15 -04:00
2017-10-26 13:59:18 -07:00