From: Jonathan Turner Date: Wed, 31 Aug 2016 13:29:08 +0000 (-0700) Subject: Rollup merge of #35926 - matthew-piziak:bit-or-xor-examples, r=GuillaumeGomez X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=2bfb20f392c6a51ded93e7342fd8c4b163bf8160;p=rust.git Rollup merge of #35926 - matthew-piziak:bit-or-xor-examples, r=GuillaumeGomez add evocative examples for `BitOr` and `BitXor` These are exactly equivalent to PR #35809, with one caveat: I do not believe there is a non-bitwise binary XOR operator in Rust, so here it's expressed as `(a || b) && !(a && b)`. Alternative decompositions are `(a && !b) || (!a && b)` and `(a || b) && (!a || !b)`. Let me know if you think one of those would be clearer. r? @GuillaumeGomez --- 2bfb20f392c6a51ded93e7342fd8c4b163bf8160