diff options
| author | bors <bors@rust-lang.org> | 2013-03-12 00:57:43 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-03-12 00:57:43 -0700 |
| commit | a95b933350e1e403c8a4118977049e38505f2a90 (patch) | |
| tree | 1636797507af611e42a7c6c04d4ff02c150b12b3 /src/rt/rust_sched_loop.cpp | |
| parent | 4e350c7ce7574259dd0aad9f981e615b2b917d20 (diff) | |
| parent | a21b43c6bbb0edcf4dfe9913a084f28eb950b364 (diff) | |
| download | rust-a95b933350e1e403c8a4118977049e38505f2a90.tar.gz rust-a95b933350e1e403c8a4118977049e38505f2a90.zip | |
auto merge of #5328 : bstrie/rust/optadd, r=graydon
This will allow you to use the `+` operator to add together any two Options, assuming that the contents of each Option likewise implement `+`. So Some(4) + Some(1) == Some(5), and adding with None leaves the other value unchanged. This might be monoidic? I don't know what that word means!
Diffstat (limited to 'src/rt/rust_sched_loop.cpp')
0 files changed, 0 insertions, 0 deletions
