Taiki Endo
360432f1e8
libcore => 2018
2019-04-18 14:47:35 +09:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
Josh Stone
68d05b2a07
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-10-18 23:12:37 -07:00
Brian Anderson
a0594ebb8b
core: Remove the unit module
2014-05-15 13:50:50 -07:00
Alex Crichton
e7eed5f670
core: Inherit the unit module
2014-05-07 08:13:56 -07:00
Graydon Hoare
2a5713ed5c
core: rename unit to nil. Close #4080 .
2012-12-03 17:28:19 -08:00
Graydon Hoare
00c856c0b1
Update license, add license boilerplate to most files. Remainder will follow.
2012-12-03 17:12:14 -08:00
Brian Anderson
b52a4b412e
core: Make core.rc more readable. Cleanup
2012-11-30 01:32:53 -08:00
Brian Anderson
8179e268ef
Register snapshots
2012-11-28 12:33:00 -08:00
Patrick Walton
318e534895
rustc: Implement explicit self for Eq and Ord. r=graydon
2012-11-19 15:33:11 -08:00
Brian Anderson
37aee97e4b
core: Mark more mods as demoded
2012-09-25 12:18:52 -07:00
Brian Anderson
afd91f8a56
Register snapshots. Remove redundant Eq impls, Makefile hacks
2012-09-23 23:01:49 -07:00
Patrick Walton
9117dcb968
rustc: De-mode all overloaded operators
2012-09-20 09:48:05 -07:00
Brian Anderson
c115b82238
core: Clean up crate docs and give all mods a brief description
2012-09-19 16:52:59 -07:00
Patrick Walton
feb014eb3c
rustc: Add an "ne" method to the Eq trait, and implement it everywhere
2012-09-07 12:24:48 -07:00
Patrick Walton
45e46f5fc0
libcore: Add missing unit.rs
2012-08-30 10:14:54 -07:00