about summary refs log tree commit diff
path: root/src/rt/rust_sched_loop.cpp
diff options
context:
space:
mode:
authorBen Striegel <ben.striegel@gmail.com>2013-03-11 22:46:16 -0400
committerBen Striegel <ben.striegel@gmail.com>2013-03-11 22:46:16 -0400
commita21b43c6bbb0edcf4dfe9913a084f28eb950b364 (patch)
treec1a6875ae71cc13fb24aa4a3ac6a642a9e95c577 /src/rt/rust_sched_loop.cpp
parenta6bb4a0f1a61ab00e09c4cb24dfff95c6c2481c7 (diff)
downloadrust-a21b43c6bbb0edcf4dfe9913a084f28eb950b364.tar.gz
rust-a21b43c6bbb0edcf4dfe9913a084f28eb950b364.zip
Implement Add on Option types
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